This is an automated email from the ASF dual-hosted git repository. tzulitai pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/flink-statefun.git
commit d059466ea27e22b5d13ebf6d21f4432d5aabd25f Author: Stephan Ewen <se...@apache.org> AuthorDate: Tue Mar 31 21:11:14 2020 +0200 [FLINK-16892][build] Avoid bundling Flink dependencies in statefun-flink-distribution jar artifact Because the "provided" scope in Maven does not work well with transitive dependencies, many transitive dependencies are interpreted as "compile" scope and included in the shaded jar. This overrides the remaining Flink modules as 'provided' in "statefun-flink-distribution". --- statefun-flink/statefun-flink-distribution/pom.xml | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/statefun-flink/statefun-flink-distribution/pom.xml b/statefun-flink/statefun-flink-distribution/pom.xml index e7cf439..2e2ef48 100644 --- a/statefun-flink/statefun-flink-distribution/pom.xml +++ b/statefun-flink/statefun-flink-distribution/pom.xml @@ -78,6 +78,18 @@ under the License. <!-- flink runtime is always provided --> <dependency> <groupId>org.apache.flink</groupId> + <artifactId>flink-core</artifactId> + <version>${flink.version}</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.apache.flink</groupId> + <artifactId>flink-java</artifactId> + <version>${flink.version}</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.apache.flink</groupId> <artifactId>flink-streaming-java_${scala.binary.version}</artifactId> <version>${flink.version}</version> <scope>provided</scope> @@ -88,6 +100,18 @@ under the License. <version>${flink.version}</version> <scope>provided</scope> </dependency> + <dependency> + <groupId>org.apache.flink</groupId> + <artifactId>flink-optimizer_${scala.binary.version}</artifactId> + <version>${flink.version}</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.apache.flink</groupId> + <artifactId>flink-clients_${scala.binary.version}</artifactId> + <version>${flink.version}</version> + <scope>provided</scope> + </dependency> </dependencies> <build>