From 3b83b5e054f11787723f480074950e76cb6f397c Mon Sep 17 00:00:00 2001 From: Chesnay Schepler Date: Thu, 10 Jun 2021 23:56:45 +0200 Subject: [PATCH] [FLINK-22931][build] Migrate to flink-shaded-force-shading --- .../resources/archetype-resources/pom.xml | 2 +- .../resources/archetype-resources/pom.xml | 2 +- .../resources/archetype-resources/pom.xml | 2 +- .../resources/archetype-resources/pom.xml | 2 +- pom.xml | 12 +- tools/force-shading/pom.xml | 125 ------------------ tools/releasing/create_release_branch.sh | 3 +- tools/releasing/update_branch_version.sh | 3 +- 8 files changed, 12 insertions(+), 139 deletions(-) delete mode 100644 tools/force-shading/pom.xml diff --git a/flink-quickstart/flink-quickstart-java/src/main/resources/archetype-resources/pom.xml b/flink-quickstart/flink-quickstart-java/src/main/resources/archetype-resources/pom.xml index 057d9581f4dfd..4d46fd655aac7 100644 --- a/flink-quickstart/flink-quickstart-java/src/main/resources/archetype-resources/pom.xml +++ b/flink-quickstart/flink-quickstart-java/src/main/resources/archetype-resources/pom.xml @@ -136,7 +136,7 @@ under the License. - org.apache.flink:force-shading + org.apache.flink:flink-shaded-force-shading com.google.code.findbugs:jsr305 org.slf4j:* org.apache.logging.log4j:* diff --git a/flink-quickstart/flink-quickstart-scala/src/main/resources/archetype-resources/pom.xml b/flink-quickstart/flink-quickstart-scala/src/main/resources/archetype-resources/pom.xml index 61564e77d0e7c..a239b8cb32619 100644 --- a/flink-quickstart/flink-quickstart-scala/src/main/resources/archetype-resources/pom.xml +++ b/flink-quickstart/flink-quickstart-scala/src/main/resources/archetype-resources/pom.xml @@ -132,7 +132,7 @@ under the License. - org.apache.flink:force-shading + org.apache.flink:flink-shaded-force-shading com.google.code.findbugs:jsr305 org.slf4j:* org.apache.logging.log4j:* diff --git a/flink-walkthroughs/flink-walkthrough-datastream-java/src/main/resources/archetype-resources/pom.xml b/flink-walkthroughs/flink-walkthrough-datastream-java/src/main/resources/archetype-resources/pom.xml index 0eaf0c5797906..6764060f69e4e 100644 --- a/flink-walkthroughs/flink-walkthrough-datastream-java/src/main/resources/archetype-resources/pom.xml +++ b/flink-walkthroughs/flink-walkthrough-datastream-java/src/main/resources/archetype-resources/pom.xml @@ -136,7 +136,7 @@ under the License. - org.apache.flink:force-shading + org.apache.flink:flink-shaded-force-shading com.google.code.findbugs:jsr305 org.slf4j:* org.apache.logging.log4j:* diff --git a/flink-walkthroughs/flink-walkthrough-datastream-scala/src/main/resources/archetype-resources/pom.xml b/flink-walkthroughs/flink-walkthrough-datastream-scala/src/main/resources/archetype-resources/pom.xml index 08b267f9bef16..b7b4a392b4226 100644 --- a/flink-walkthroughs/flink-walkthrough-datastream-scala/src/main/resources/archetype-resources/pom.xml +++ b/flink-walkthroughs/flink-walkthrough-datastream-scala/src/main/resources/archetype-resources/pom.xml @@ -124,7 +124,7 @@ under the License. - org.apache.flink:force-shading + org.apache.flink:flink-shaded-force-shading com.google.code.findbugs:jsr305 org.slf4j:* org.apache.logging.log4j:* diff --git a/pom.xml b/pom.xml index 08009208abee7..7e2e39effda4c 100644 --- a/pom.xml +++ b/pom.xml @@ -50,8 +50,6 @@ under the License. - - tools/force-shading flink-annotations flink-core flink-java @@ -166,8 +164,8 @@ under the License. org.apache.flink - force-shading - 1.14-SNAPSHOT + flink-shaded-force-shading + ${flink.shaded.version} @@ -1787,7 +1785,7 @@ under the License. - org.apache.flink:force-shading + org.apache.flink:flink-shaded-force-shading ** @@ -1807,8 +1805,10 @@ under the License. i.e. poms which do not contain properties which are derived from this root pom. In particular, the Scala version properties are defined in the root pom and without shading, the root pom would have to be Scala suffixed and thereby all other modules. + Removing this exclusion will also cause compilation errors in at least + 1 module (flink-connector-elasticsearch5), for unknown reasons. --> - org.apache.flink:force-shading + org.apache.flink:flink-shaded-force-shading diff --git a/tools/force-shading/pom.xml b/tools/force-shading/pom.xml deleted file mode 100644 index cb56bf82f4f68..0000000000000 --- a/tools/force-shading/pom.xml +++ /dev/null @@ -1,125 +0,0 @@ - - - - - 4.0.0 - - - org.apache - apache - 18 - - - - - org.apache.flink - force-shading - 1.14-SNAPSHOT - Flink : Tools : Force Shading - - jar - - - - - - - com.diffplug.spotless - spotless-maven-plugin - 2.4.2 - - - - - - - - release - - - release - - - - - - org.apache.maven.plugins - maven-gpg-plugin - 1.4 - - - sign-artifacts - verify - - sign - - - - - - org.apache.maven.plugins - maven-enforcer-plugin - 3.0.0-M1 - - - enforce-maven - - enforce - - - - - - (,3.3) - - - - - - - - - - - org.apache.maven.plugins - maven-release-plugin - 2.1 - - forked-path - false - ${arguments} -Psonatype-oss-release - - - - - - - - - diff --git a/tools/releasing/create_release_branch.sh b/tools/releasing/create_release_branch.sh index 886013f3a14fd..10aa571e7a12e 100755 --- a/tools/releasing/create_release_branch.sh +++ b/tools/releasing/create_release_branch.sh @@ -52,8 +52,7 @@ fi git checkout -b $target_branch #change version in all pom files -#-DprocessAllModules is required for force-shading to be picked up -$MVN org.codehaus.mojo:versions-maven-plugin:2.8.1:set -DnewVersion=$NEW_VERSION -DprocessAllModules -DgenerateBackupPoms=false --quiet +$MVN org.codehaus.mojo:versions-maven-plugin:2.8.1:set -DnewVersion=$NEW_VERSION -DgenerateBackupPoms=false --quiet pushd tools ./releasing/update_japicmp_configuration.sh diff --git a/tools/releasing/update_branch_version.sh b/tools/releasing/update_branch_version.sh index 7a3bea1d2768b..ceddacc25bf29 100755 --- a/tools/releasing/update_branch_version.sh +++ b/tools/releasing/update_branch_version.sh @@ -44,8 +44,7 @@ fi cd .. #change version in all pom files -#-DprocessAllModules is required for force-shading to be picked up -$MVN org.codehaus.mojo:versions-maven-plugin:2.8.1:set -DnewVersion=$NEW_VERSION -DprocessAllModules -DgenerateBackupPoms=false --quiet +$MVN org.codehaus.mojo:versions-maven-plugin:2.8.1:set -DnewVersion=$NEW_VERSION -DgenerateBackupPoms=false --quiet #change version of documentation