You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by al...@apache.org on 2017/09/27 11:09:23 UTC
[18/20] flink git commit: [FLINK-2268] Don't include Hadoop deps in
flink-core/flink-java
[FLINK-2268] Don't include Hadoop deps in flink-core/flink-java
This also makes them optional in flink-runtime, which is enabled by the
previous changes to only use Hadoop dependencies if they are available.
This also requires adding a few explicit dependencies in other modules
because they were using transitive dependencies of the Hadoop deps. The
most common dependency there is, ha!, commons-io.
Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/a477db39
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/a477db39
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/a477db39
Branch: refs/heads/master
Commit: a477db394fb453c881d7e12b7ad53da2336d6602
Parents: 7f1c233
Author: Aljoscha Krettek <al...@gmail.com>
Authored: Thu Aug 24 14:32:14 2017 +0200
Committer: Aljoscha Krettek <al...@gmail.com>
Committed: Wed Sep 27 10:05:11 2017 +0200
----------------------------------------------------------------------
flink-java/pom.xml | 6 ------
flink-libraries/flink-table/pom.xml | 10 ++++++++++
flink-runtime/pom.xml | 8 +++++++-
flink-tests/pom.xml | 7 +++++++
pom.xml | 14 ++++++++++++++
5 files changed, 38 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flink/blob/a477db39/flink-java/pom.xml
----------------------------------------------------------------------
diff --git a/flink-java/pom.xml b/flink-java/pom.xml
index 11fd89f..6e2087d 100644
--- a/flink-java/pom.xml
+++ b/flink-java/pom.xml
@@ -43,12 +43,6 @@ under the License.
<dependency>
<groupId>org.apache.flink</groupId>
- <artifactId>flink-shaded-hadoop2</artifactId>
- <version>${project.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.flink</groupId>
<artifactId>flink-shaded-asm</artifactId>
</dependency>
http://git-wip-us.apache.org/repos/asf/flink/blob/a477db39/flink-libraries/flink-table/pom.xml
----------------------------------------------------------------------
diff --git a/flink-libraries/flink-table/pom.xml b/flink-libraries/flink-table/pom.xml
index 7362913..c4aef8d 100644
--- a/flink-libraries/flink-table/pom.xml
+++ b/flink-libraries/flink-table/pom.xml
@@ -44,6 +44,16 @@ under the License.
</dependency>
<dependency>
+ <groupId>commons-configuration</groupId>
+ <artifactId>commons-configuration</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-codec</groupId>
+ <artifactId>commons-codec</artifactId>
+ </dependency>
+
+ <dependency>
<groupId>org.codehaus.janino</groupId>
<artifactId>janino</artifactId>
<version>3.0.7</version>
http://git-wip-us.apache.org/repos/asf/flink/blob/a477db39/flink-runtime/pom.xml
----------------------------------------------------------------------
diff --git a/flink-runtime/pom.xml b/flink-runtime/pom.xml
index 09b5b04..3ed7e70 100644
--- a/flink-runtime/pom.xml
+++ b/flink-runtime/pom.xml
@@ -49,11 +49,17 @@ under the License.
<artifactId>flink-java</artifactId>
<version>${project.version}</version>
</dependency>
-
+
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded-hadoop2</artifactId>
<version>${project.version}</version>
+ <optional>true</optional>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
</dependency>
<dependency>
http://git-wip-us.apache.org/repos/asf/flink/blob/a477db39/flink-tests/pom.xml
----------------------------------------------------------------------
diff --git a/flink-tests/pom.xml b/flink-tests/pom.xml
index a0c68a8..75325e5 100644
--- a/flink-tests/pom.xml
+++ b/flink-tests/pom.xml
@@ -54,6 +54,13 @@ under the License.
<dependency>
<groupId>org.apache.flink</groupId>
+ <artifactId>flink-shaded-hadoop2</artifactId>
+ <version>${project.version}</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-java_${scala.binary.version}</artifactId>
<version>${project.version}</version>
<scope>test</scope>
http://git-wip-us.apache.org/repos/asf/flink/blob/a477db39/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 567f8f1..f264120 100644
--- a/pom.xml
+++ b/pom.xml
@@ -328,6 +328,12 @@ under the License.
</dependency>
<dependency>
+ <groupId>commons-codec</groupId>
+ <artifactId>commons-codec</artifactId>
+ <version>1.10</version>
+ </dependency>
+
+ <dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-math3</artifactId>
<version>3.5</version>
@@ -1460,6 +1466,14 @@ under the License.
<exclude>@org.apache.flink.annotation.Internal</exclude>
<exclude>org.apache.flink.streaming.api.functions.sink.RichSinkFunction#invoke(java.lang.Object)</exclude>
<exclude>org.apache.flink.streaming.api.functions.sink.SinkFunction</exclude>
+ <exclude>org.apache.flink.api.java.hadoop.mapred.HadoopInputFormat</exclude>
+ <exclude>org.apache.flink.api.java.hadoop.mapred.HadoopOutputFormat</exclude>
+ <exclude>org.apache.flink.api.java.hadoop.mapreduce.HadoopInputFormat</exclude>
+ <exclude>org.apache.flink.api.java.hadoop.mapreduce.HadoopOutputFormat</exclude>
+ <exclude>org.apache.flink.api.scala.hadoop.mapred.HadoopInputFormat</exclude>
+ <exclude>org.apache.flink.api.scala.hadoop.mapred.HadoopOutputFormat</exclude>
+ <exclude>org.apache.flink.api.scala.hadoop.mapreduce.HadoopInputFormat</exclude>
+ <exclude>org.apache.flink.api.scala.hadoop.mapreduce.HadoopOutputFormat</exclude>
</excludes>
<accessModifier>public</accessModifier>
<breakBuildOnModifications>false</breakBuildOnModifications>