zentol closed pull request #7172: [FLINK-4173][metrics] Replace assembly-plugin usage URL: https://github.com/apache/flink/pull/7172
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/flink-dist/src/main/assemblies/opt.xml b/flink-dist/src/main/assemblies/opt.xml index ba459b1670e..0d9acf3c3ae 100644 --- a/flink-dist/src/main/assemblies/opt.xml +++ b/flink-dist/src/main/assemblies/opt.xml @@ -85,14 +85,7 @@ <!-- Metrics --> <file> - <source>../flink-metrics/flink-metrics-dropwizard/target/flink-metrics-dropwizard-${project.version}-jar-with-dependencies.jar</source> - <outputDirectory>opt/</outputDirectory> - <destName>flink-metrics-dropwizard-${project.version}.jar</destName> - <fileMode>0644</fileMode> - </file> - - <file> - <source>../flink-metrics/flink-metrics-graphite/target/flink-metrics-graphite-${project.version}-jar-with-dependencies.jar</source> + <source>../flink-metrics/flink-metrics-graphite/target/flink-metrics-graphite-${project.version}.jar</source> <outputDirectory>opt/</outputDirectory> <destName>flink-metrics-graphite-${project.version}.jar</destName> <fileMode>0644</fileMode> diff --git a/flink-metrics/flink-metrics-dropwizard/pom.xml b/flink-metrics/flink-metrics-dropwizard/pom.xml index 19da8472870..bdbb95d75d5 100644 --- a/flink-metrics/flink-metrics-dropwizard/pom.xml +++ b/flink-metrics/flink-metrics-dropwizard/pom.xml @@ -86,27 +86,4 @@ under the License. </dependency> </dependencies> - - <build> - <plugins> - <plugin> - <artifactId>maven-assembly-plugin</artifactId> - <version>2.4</version> - <configuration> - <descriptorRefs> - <descriptorRef>jar-with-dependencies</descriptorRef> - </descriptorRefs> - </configuration> - <executions> - <execution> - <id>make-assembly</id> - <phase>package</phase> - <goals> - <goal>single</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> </project> diff --git a/flink-metrics/flink-metrics-graphite/pom.xml b/flink-metrics/flink-metrics-graphite/pom.xml index 03ba5364bd9..c8d1f8c8df5 100644 --- a/flink-metrics/flink-metrics-graphite/pom.xml +++ b/flink-metrics/flink-metrics-graphite/pom.xml @@ -69,20 +69,24 @@ under the License. <build> <plugins> <plugin> - <artifactId>maven-assembly-plugin</artifactId> - <version>2.4</version> - <configuration> - <descriptorRefs> - <descriptorRef>jar-with-dependencies</descriptorRef> - </descriptorRefs> - </configuration> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> <executions> <execution> - <id>make-assembly</id> + <id>shade-flink</id> <phase>package</phase> <goals> - <goal>single</goal> + <goal>shade</goal> </goals> + <configuration> + <artifactSet> + <includes> + <include>org.apache.flink:flink-metrics-dropwizard</include> + <include>io.dropwizard.metrics:metrics-core</include> + <include>io.dropwizard.metrics:metrics-graphite</include> + </includes> + </artifactSet> + </configuration> </execution> </executions> </plugin> ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services