From bba1d944f47d78480025a8bcbe50939698ea854e Mon Sep 17 00:00:00 2001 From: Gonzalo Ortiz Date: Fri, 22 Sep 2023 12:51:17 +0200 Subject: [PATCH 1/2] Move scala dependencies to root pom --- .../pinot-flink-connector/pom.xml | 8 +- .../pinot-spark-2-connector/pom.xml | 54 ---------- .../pinot-spark-3-connector/pom.xml | 54 ---------- pinot-connectors/pinot-spark-common/pom.xml | 58 ----------- .../pinot-kafka-2.0/pom.xml | 25 ----- pinot-tools/pom.xml | 3 +- pom.xml | 98 +++++++++++++++++++ 7 files changed, 101 insertions(+), 199 deletions(-) diff --git a/pinot-connectors/pinot-flink-connector/pom.xml b/pinot-connectors/pinot-flink-connector/pom.xml index cbb3d941e4e0..3b6f3198b7db 100644 --- a/pinot-connectors/pinot-flink-connector/pom.xml +++ b/pinot-connectors/pinot-flink-connector/pom.xml @@ -34,8 +34,6 @@ https://pinot.apache.org/ ${basedir}/../.. - 2.12 - 1.12.0 @@ -53,8 +51,7 @@ org.apache.flink - flink-streaming-java_${scala.version} - ${flink.version} + flink-streaming-java_${scala.compat.version} org.apache.pinot @@ -85,8 +82,7 @@ org.apache.flink - flink-clients_${scala.version} - ${flink.version} + flink-clients_${scala.compat.version} test diff --git a/pinot-connectors/pinot-spark-2-connector/pom.xml b/pinot-connectors/pinot-spark-2-connector/pom.xml index eaae57887c25..32b324385d20 100644 --- a/pinot-connectors/pinot-spark-2-connector/pom.xml +++ b/pinot-connectors/pinot-spark-2-connector/pom.xml @@ -46,10 +46,6 @@ true - - 2.12.11 - 2.12 - org.scala-lang.modules @@ -93,7 +89,6 @@ org.scala-lang scala-library - ${scala.version} provided @@ -143,55 +138,6 @@ net.alchim31.maven scala-maven-plugin - 3.2.2 - - - eclipse-add-source - - add-source - - - - scala-compile-first - process-resources - - compile - - - - scala-test-compile-first - process-test-resources - - testCompile - - - - attach-scaladocs - verify - - doc-jar - - - - - ${scala.version} - - -unchecked - -deprecation - -feature - - - -Xms1024m - -Xmx1024m - - - -source - ${jdk.version} - -target - ${jdk.version} - -Xlint:all,-serial,-path - - diff --git a/pinot-connectors/pinot-spark-3-connector/pom.xml b/pinot-connectors/pinot-spark-3-connector/pom.xml index fe5515ab4ad5..136e050888f1 100644 --- a/pinot-connectors/pinot-spark-3-connector/pom.xml +++ b/pinot-connectors/pinot-spark-3-connector/pom.xml @@ -45,10 +45,6 @@ true - - 2.12.11 - 2.12 - org.apache.spark @@ -86,7 +82,6 @@ org.scala-lang scala-library - ${scala.version} provided @@ -140,55 +135,6 @@ net.alchim31.maven scala-maven-plugin - 3.2.2 - - - eclipse-add-source - - add-source - - - - scala-compile-first - process-resources - - compile - - - - scala-test-compile-first - process-test-resources - - testCompile - - - - attach-scaladocs - verify - - doc-jar - - - - - ${scala.version} - - -unchecked - -deprecation - -feature - - - -Xms1024m - -Xmx1024m - - - -source - ${jdk.version} - -target - ${jdk.version} - -Xlint:all,-serial,-path - - diff --git a/pinot-connectors/pinot-spark-common/pom.xml b/pinot-connectors/pinot-spark-common/pom.xml index 427e23d9240f..c96e369643a9 100644 --- a/pinot-connectors/pinot-spark-common/pom.xml +++ b/pinot-connectors/pinot-spark-common/pom.xml @@ -45,10 +45,6 @@ true - - 2.12.11 - 2.12 - com.thoughtworks.paranamer @@ -105,7 +101,6 @@ org.scala-lang scala-library - ${scala.version} provided @@ -154,59 +149,6 @@ net.alchim31.maven scala-maven-plugin - 3.2.2 - - - add-source - generate-sources - - add-source - - - src/main/java - - - - scala-compile-first - process-resources - - compile - - - - scala-test-compile-first - process-test-resources - - testCompile - - - - attach-scaladocs - verify - - doc-jar - - - - - ${scala.version} - - -unchecked - -deprecation - -feature - - - -Xms1024m - -Xmx1024m - - - -source - ${jdk.version} - -target - ${jdk.version} - -Xlint:all,-serial,-path - - diff --git a/pinot-plugins/pinot-stream-ingestion/pinot-kafka-2.0/pom.xml b/pinot-plugins/pinot-stream-ingestion/pinot-kafka-2.0/pom.xml index 6d0cfe5b1bb7..bd2ac3c5e04f 100644 --- a/pinot-plugins/pinot-stream-ingestion/pinot-kafka-2.0/pom.xml +++ b/pinot-plugins/pinot-stream-ingestion/pinot-kafka-2.0/pom.xml @@ -72,7 +72,6 @@ org.scala-lang scala-library - ${scala.version} org.apache.kafka @@ -113,28 +112,4 @@ test - - - - - scala-2.12 - - true - - - 2.12.11 - 2.12 - - - - scala-2.13 - - false - - - 2.13.3 - 2.13 - - - diff --git a/pinot-tools/pom.xml b/pinot-tools/pom.xml index 726850bb4162..48f876bd1c75 100644 --- a/pinot-tools/pom.xml +++ b/pinot-tools/pom.xml @@ -33,7 +33,6 @@ https://pinot.apache.org/ ${basedir}/.. - 2.12 3.2.1 0.16 @@ -286,7 +285,7 @@ --> org.apache.spark - spark-launcher_${scala.version} + spark-launcher_${scala.compat.version} ${spark.version} diff --git a/pom.xml b/pom.xml index 9220d562bd92..35cd3e466ecb 100644 --- a/pom.xml +++ b/pom.xml @@ -177,6 +177,8 @@ 3.0.0-M5 3.3.0 3.4.1 + + 1.12.0 @@ -224,6 +226,27 @@ + + scala-2.12 + + true + + + 2.12.18 + 2.12 + + + + + scala-2.13 + + false + + + 2.13.3 + 2.13 + + @@ -1293,6 +1316,24 @@ pom import + + + org.scala-lang + scala-library + ${scala.version} + + + + org.apache.flink + flink-clients_${scala.compat.version} + ${flink.version} + test + + + org.apache.flink + flink-streaming-java_${scala.compat.version} + ${flink.version} + @@ -1516,6 +1557,63 @@ ${project.build.sourceEncoding} + + net.alchim31.maven + scala-maven-plugin + 3.2.2 + + + add-source + generate-sources + + add-source + + + src/main/java + + + + scala-compile-first + process-resources + + compile + + + + scala-test-compile-first + process-test-resources + + testCompile + + + + attach-scaladocs + verify + + doc-jar + + + + + ${scala.version} + + -unchecked + -deprecation + -feature + + + -Xms1024m + -Xmx1024m + + + -source + ${jdk.version} + -target + ${jdk.version} + -Xlint:all,-serial,-path + + + From 200a5702c283edfcfd35746dbacdfab251e25d98 Mon Sep 17 00:00:00 2001 From: Gonzalo Ortiz Date: Mon, 25 Sep 2023 10:47:30 +0200 Subject: [PATCH 2/2] Move scala.version and scala.compat.version to default properties --- pom.xml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index 35cd3e466ecb..33fd423b019c 100644 --- a/pom.xml +++ b/pom.xml @@ -178,6 +178,10 @@ 3.3.0 3.4.1 + + 2.12.18 + 2.12 + 1.12.0 @@ -226,16 +230,6 @@ - - scala-2.12 - - true - - - 2.12.18 - 2.12 - - scala-2.13