From e3a771e33da226975bffed50d9ccc2ce67e77bf4 Mon Sep 17 00:00:00 2001 From: Gera Shegalov Date: Fri, 27 Jan 2023 20:15:04 -0800 Subject: [PATCH] Centralize source-related properties in parent pom for consistent usage in submodules (#7600) Contributes to #7487. Use a consistent scheme of properties for sql-plugin and tests modules for easier automation. Signed-off-by: Gera Shegalov --- dist/pom.xml | 43 +---- pom.xml | 430 ++++++++++++++++++++++++++++++++++++++++++--- sql-plugin/pom.xml | 236 +------------------------ tests/pom.xml | 34 ---- 4 files changed, 403 insertions(+), 340 deletions(-) diff --git a/dist/pom.xml b/dist/pom.xml index 4b508bad0ab..ba86abbe04c 100644 --- a/dist/pom.xml +++ b/dist/pom.xml @@ -1,6 +1,6 @@ - - 320 - - - 330 - - - 320 - - - 312, - 321, - 331 - ${project.build.directory}/${project.build.finalName}-${cuda.version}.jar diff --git a/pom.xml b/pom.xml index 804035372f9..4f310d0cc18 100644 --- a/pom.xml +++ b/pom.xml @@ -85,7 +85,7 @@ ${spark311.version} 1.10.1 ${spark311.sources} - ${project.basedir}/src/test/${buildver}/scala + ${spark311.test.sources} delta-lake/delta-stub @@ -125,7 +125,7 @@ true 1.10.1 ${spark312db.sources} - ${project.basedir}/src/test/${buildver}/scala + ${spark312db.test.sources} @@ -153,7 +153,7 @@ ${spark312.version} 1.10.1 ${spark312.sources} - ${project.basedir}/src/test/${buildver}/scala + ${spark312.test.sources} delta-lake/delta-stub @@ -181,7 +181,7 @@ ${spark313.version} 1.10.1 ${spark313.sources} - ${project.basedir}/src/test/${buildver}/scala + ${spark313.test.sources} delta-lake/delta-stub @@ -209,7 +209,7 @@ ${spark314.version} 1.10.1 ${spark314.sources} - ${project.basedir}/src/test/${buildver}/scala + ${spark314.test.sources} delta-lake/delta-stub @@ -237,7 +237,7 @@ ${spark320.version} 1.12.1 ${spark320.sources} - ${project.basedir}/src/test/${buildver}/scala + ${spark320.test.sources} delta-lake/delta-20x @@ -264,7 +264,7 @@ ${spark321.version} 1.12.2 ${spark321.sources} - ${project.basedir}/src/test/${buildver}/scala + ${spark321.test.sources} delta-lake/delta-20x @@ -291,7 +291,7 @@ ${spark321cdh.version} 1.10.1 ${spark321cdh.sources} - ${project.basedir}/src/test/${buildver}/scala + ${spark321cdh.test.sources} @@ -324,7 +324,7 @@ ${spark322.version} 1.12.2 ${spark322.sources} - ${project.basedir}/src/test/${buildver}/scala + ${spark322.test.sources} delta-lake/delta-20x @@ -351,7 +351,7 @@ ${spark323.version} 1.12.2 ${spark323.sources} - ${project.basedir}/src/test/${buildver}/scala + ${spark323.test.sources} delta-lake/delta-20x @@ -390,7 +390,7 @@ true 1.12.0 ${spark321db.sources} - ${project.basedir}/src/test/${buildver}/scala + ${spark321db.test.sources} delta-lake/delta-spark321db @@ -418,7 +418,7 @@ 1.12.2 ${spark330.sources} ${spark330.iceberg.version} - ${project.basedir}/src/test/${buildver}/scala + ${spark330.test.sources} delta-lake/delta-21x @@ -447,7 +447,7 @@ 1.12.2 ${spark331.sources} ${spark330.iceberg.version} - ${project.basedir}/src/test/${buildver}/scala + ${spark331.test.sources} delta-lake/delta-21x @@ -476,7 +476,7 @@ 1.12.2 ${spark332.sources} ${spark330.iceberg.version} - ${project.basedir}/src/test/${buildver}/scala + ${spark332.test.sources} delta-lake/delta-21x @@ -505,7 +505,7 @@ 1.12.3 ${spark340.sources} ${spark330.iceberg.version} - ${project.basedir}/src/test/${buildver}/scala + ${spark340.test.sources} delta-lake/delta-stub @@ -533,7 +533,7 @@ 1.10.99.7.1.8.0-801 ${spark330cdh.sources} ${spark330.iceberg.version} - ${project.basedir}/src/test/${buildver}/scala + ${spark330cdh.test.sources} @@ -586,7 +586,7 @@ 1.12.0 ${spark330db.sources} ${spark330.iceberg.version} - ${project.basedir}/src/test/${buildver}/scala + ${spark330db.test.sources} delta-lake/delta-spark330db @@ -725,6 +725,53 @@ with the ones deployed to a remote Maven repo --> false + + 311, + 312, + 313, + 320, + 321, + 321cdh, + 322, + 323, + 330, + 331, + 330cdh + + + 332 + + + 312db, + 321db, + 330db + + + + 320 + + + 330 + + + 320 + + + 312, + 321, + 331 + + + ${noSnapshot.buildvers}, + ${snapshot.buildvers}, + ${databricks.buildvers}, + 340 + @@ -846,13 +893,315 @@ org.codehaus.mojo build-helper-maven-plugin - 3.2.0 + 3.3.0 org.apache.maven.plugins maven-antrun-plugin - 3.0.0 + 3.1.0 + + create-source-path-properties + run + initialize + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + generate-build-info generate-resources @@ -1113,21 +1462,22 @@ - org.apache.maven.plugins maven-antrun-plugin + false + scalastyle-all-modules verify run @@ -1184,6 +1534,28 @@ + + org.codehaus.mojo + build-helper-maven-plugin + + + add-shim-sources + generate-sources + add-source + + ${spark.shim.sources} + + + + add-shim-test-sources + generate-test-sources + add-test-source + + ${spark.shim.test.sources} + + + + org.jacoco jacoco-maven-plugin diff --git a/sql-plugin/pom.xml b/sql-plugin/pom.xml index 23f4e44b043..bbc87159e25 100644 --- a/sql-plugin/pom.xml +++ b/sql-plugin/pom.xml @@ -1,6 +1,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - copy-notice @@ -754,30 +544,6 @@ org.scalatest scalatest-maven-plugin - - org.codehaus.mojo - build-helper-maven-plugin - - - add-shim-sources - generate-sources - add-source - - ${spark.shim.sources} - - - - add-shim-test-sources - generate-test-sources - add-test-source - - - ${spark.shim.test.sources} - - - - - diff --git a/tests/pom.xml b/tests/pom.xml index 88b4bcee553..7dcf3aa1982 100644 --- a/tests/pom.xml +++ b/tests/pom.xml @@ -350,9 +350,6 @@ 321 - - ${project.basedir}/src/test/320+-noncdh-nondb/scala - release322 @@ -362,9 +359,6 @@ 322 - - ${project.basedir}/src/test/320+-noncdh-nondb/scala - release323 @@ -374,9 +368,6 @@ 323 - - ${project.basedir}/src/test/320+-noncdh-nondb/scala - release330 @@ -386,9 +377,6 @@ 330 - - ${project.basedir}/src/test/330+/scala,${project.basedir}/src/test/320+-noncdh-nondb/scala - release331 @@ -398,9 +386,6 @@ 331 - - ${project.basedir}/src/test/330+/scala,${project.basedir}/src/test/320+-noncdh-nondb/scala - release332 @@ -410,9 +395,6 @@ 332 - - ${project.basedir}/src/test/330+/scala,${project.basedir}/src/test/320+-noncdh-nondb/scala - release340 @@ -422,9 +404,6 @@ 340 - - ${project.basedir}/src/test/330+/scala,${project.basedir}/src/test/320+-noncdh-nondb/scala - @@ -449,19 +428,6 @@ org.apache.rat apache-rat-plugin - - org.codehaus.mojo - build-helper-maven-plugin - - - add-shim-test-sources - add-test-source - - ${spark.shim.test.sources} - - - -