From 0ff17bff3ba9f4eb666e68fda4f5e04e4f009ef3 Mon Sep 17 00:00:00 2001 From: Laurent Goujon Date: Mon, 10 Jun 2024 05:37:01 -0700 Subject: [PATCH] GH-41929: [Java] pom.xml license formatting (#42049) ### What changes are included in this PR? Reformat the XML license to match style defined at https://www.apache.org/legal/src-headers.html Include license formatting to all Maven `pom.xml` files via spotless plugin. ### Are these changes tested? Via CI. ### Are there any user-facing changes? No * GitHub Issue: #41929 Authored-by: Laurent Goujon Signed-off-by: David Li --- java/adapter/avro/pom.xml | 28 ++++++++++------ java/adapter/jdbc/pom.xml | 28 ++++++++++------ java/adapter/orc/pom.xml | 28 ++++++++++------ java/algorithm/pom.xml | 28 ++++++++++------ java/bom/pom.xml | 32 +++++++++++++------ java/c/pom.xml | 28 ++++++++++------ java/compression/pom.xml | 28 ++++++++++------ java/dataset/pom.xml | 28 ++++++++++------ java/dev/license/asf-xml.license | 28 ++++++++++------ java/flight/flight-core/pom.xml | 28 ++++++++++------ java/flight/flight-integration-tests/pom.xml | 28 ++++++++++------ java/flight/flight-sql-jdbc-core/pom.xml | 28 ++++++++++------ java/flight/flight-sql-jdbc-driver/pom.xml | 28 ++++++++++------ java/flight/flight-sql/pom.xml | 28 ++++++++++------ java/flight/pom.xml | 28 ++++++++++------ java/format/pom.xml | 28 ++++++++++------ java/gandiva/pom.xml | 28 ++++++++++------ .../module-info-compiler-maven-plugin/pom.xml | 28 ++++++++++------ java/maven/pom.xml | 32 +++++++++++++------ java/memory/memory-core/pom.xml | 28 ++++++++++------ java/memory/memory-netty-buffer-patch/pom.xml | 28 ++++++++++------ java/memory/memory-netty/pom.xml | 28 ++++++++++------ java/memory/memory-unsafe/pom.xml | 28 ++++++++++------ java/memory/pom.xml | 28 ++++++++++------ java/performance/pom.xml | 28 ++++++++++------ java/pom.xml | 32 +++++++++++++------ java/tools/pom.xml | 28 ++++++++++------ java/vector/pom.xml | 28 ++++++++++------ 28 files changed, 516 insertions(+), 280 deletions(-) diff --git a/java/adapter/avro/pom.xml b/java/adapter/avro/pom.xml index 0af1641aa1041..88aea71862957 100644 --- a/java/adapter/avro/pom.xml +++ b/java/adapter/avro/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0 diff --git a/java/adapter/jdbc/pom.xml b/java/adapter/jdbc/pom.xml index b444eff56277d..fc0f7e0927a89 100644 --- a/java/adapter/jdbc/pom.xml +++ b/java/adapter/jdbc/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0 diff --git a/java/adapter/orc/pom.xml b/java/adapter/orc/pom.xml index 7df08e1a98b36..6c79ba8da4589 100644 --- a/java/adapter/orc/pom.xml +++ b/java/adapter/orc/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0 diff --git a/java/algorithm/pom.xml b/java/algorithm/pom.xml index 5984cce766d9e..57e8fdc81bbc7 100644 --- a/java/algorithm/pom.xml +++ b/java/algorithm/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0 diff --git a/java/bom/pom.xml b/java/bom/pom.xml index 77aed2d0f6a37..5fafbf38c7cdf 100644 --- a/java/bom/pom.xml +++ b/java/bom/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0 @@ -177,6 +185,10 @@ spotless-maven-plugin + + ${maven.multiModuleProjectDirectory}/dev/license/asf-xml.license + (<configuration|<project) + diff --git a/java/c/pom.xml b/java/c/pom.xml index afb6e0cd8b890..8a7e5d47ad3f9 100644 --- a/java/c/pom.xml +++ b/java/c/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0 diff --git a/java/compression/pom.xml b/java/compression/pom.xml index a3d6c0ac558dd..561877bd5cd36 100644 --- a/java/compression/pom.xml +++ b/java/compression/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0 diff --git a/java/dataset/pom.xml b/java/dataset/pom.xml index 3dea16204a4db..d016d49048013 100644 --- a/java/dataset/pom.xml +++ b/java/dataset/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0 diff --git a/java/dev/license/asf-xml.license b/java/dev/license/asf-xml.license index a43b97bca8f0f..b1abef4bf4b64 100644 --- a/java/dev/license/asf-xml.license +++ b/java/dev/license/asf-xml.license @@ -1,11 +1,19 @@ - \ No newline at end of file + diff --git a/java/flight/flight-core/pom.xml b/java/flight/flight-core/pom.xml index f2070d4ff7cba..437970bb93f8f 100644 --- a/java/flight/flight-core/pom.xml +++ b/java/flight/flight-core/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0 diff --git a/java/flight/flight-integration-tests/pom.xml b/java/flight/flight-integration-tests/pom.xml index cd2c28ba8959f..7b9cf2dd8aaba 100644 --- a/java/flight/flight-integration-tests/pom.xml +++ b/java/flight/flight-integration-tests/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0 diff --git a/java/flight/flight-sql-jdbc-core/pom.xml b/java/flight/flight-sql-jdbc-core/pom.xml index 50d7b2617a5a9..7fe4e7f18ca28 100644 --- a/java/flight/flight-sql-jdbc-core/pom.xml +++ b/java/flight/flight-sql-jdbc-core/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0 diff --git a/java/flight/flight-sql-jdbc-driver/pom.xml b/java/flight/flight-sql-jdbc-driver/pom.xml index 4456270e7b347..23b2c9c7cbef4 100644 --- a/java/flight/flight-sql-jdbc-driver/pom.xml +++ b/java/flight/flight-sql-jdbc-driver/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0 diff --git a/java/flight/flight-sql/pom.xml b/java/flight/flight-sql/pom.xml index 14fde34c3b4f3..2719f82e37578 100644 --- a/java/flight/flight-sql/pom.xml +++ b/java/flight/flight-sql/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0 diff --git a/java/flight/pom.xml b/java/flight/pom.xml index ad2e5f04f4faf..38495fa356e51 100644 --- a/java/flight/pom.xml +++ b/java/flight/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0 diff --git a/java/format/pom.xml b/java/format/pom.xml index 4483047e20960..44ff213fee703 100644 --- a/java/format/pom.xml +++ b/java/format/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0 diff --git a/java/gandiva/pom.xml b/java/gandiva/pom.xml index 1c17023e5c8ad..2a1e83f3e21fc 100644 --- a/java/gandiva/pom.xml +++ b/java/gandiva/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0 diff --git a/java/maven/module-info-compiler-maven-plugin/pom.xml b/java/maven/module-info-compiler-maven-plugin/pom.xml index 9f0cd7b1039dd..b00c03a014980 100644 --- a/java/maven/module-info-compiler-maven-plugin/pom.xml +++ b/java/maven/module-info-compiler-maven-plugin/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0 diff --git a/java/maven/pom.xml b/java/maven/pom.xml index e712b6fa6856d..757dab2372608 100644 --- a/java/maven/pom.xml +++ b/java/maven/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0 + 4.0.0 diff --git a/java/memory/memory-netty-buffer-patch/pom.xml b/java/memory/memory-netty-buffer-patch/pom.xml index beae12c22d2bf..1f645472a3398 100644 --- a/java/memory/memory-netty-buffer-patch/pom.xml +++ b/java/memory/memory-netty-buffer-patch/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0 diff --git a/java/memory/memory-netty/pom.xml b/java/memory/memory-netty/pom.xml index d815276b09e50..f66899151128a 100644 --- a/java/memory/memory-netty/pom.xml +++ b/java/memory/memory-netty/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0 diff --git a/java/memory/memory-unsafe/pom.xml b/java/memory/memory-unsafe/pom.xml index f1aa8fde1faa1..c1a42e3ff0081 100644 --- a/java/memory/memory-unsafe/pom.xml +++ b/java/memory/memory-unsafe/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0 diff --git a/java/memory/pom.xml b/java/memory/pom.xml index 867f4c2400d0a..e0dc467fe245e 100644 --- a/java/memory/pom.xml +++ b/java/memory/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0 diff --git a/java/performance/pom.xml b/java/performance/pom.xml index 07ca8d1e61d48..83b0a88da063b 100644 --- a/java/performance/pom.xml +++ b/java/performance/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0 diff --git a/java/pom.xml b/java/pom.xml index 085546573596a..1010b43c992bd 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0 @@ -804,6 +812,10 @@ spotless-maven-plugin + + ${maven.multiModuleProjectDirectory}/dev/license/asf-xml.license + (<configuration|<project) + diff --git a/java/tools/pom.xml b/java/tools/pom.xml index 53dcd51771054..7633b06274f57 100644 --- a/java/tools/pom.xml +++ b/java/tools/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0 diff --git a/java/vector/pom.xml b/java/vector/pom.xml index 6ff869ee21aff..76cb11be89f5a 100644 --- a/java/vector/pom.xml +++ b/java/vector/pom.xml @@ -1,14 +1,22 @@ - + 4.0.0