Skip to content

Commit

Permalink
Guava shading fixes for eclipse and IntelliJ
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanEwen committed Oct 1, 2014
1 parent 1c2ce3a commit d5fb423
Show file tree
Hide file tree
Showing 16 changed files with 30 additions and 85 deletions.
8 changes: 0 additions & 8 deletions flink-addons/flink-avro/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,6 @@ under the License.
<!-- version is derived from base module -->
</dependency>

<!-- guava needs to be in "provided" scope, so to not re-export the dependency -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-test-utils</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ under the License.

<dependencies>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-core</artifactId>
Expand Down Expand Up @@ -126,7 +132,7 @@ under the License.
</executions>
</plugin>

<!-- Relocate the entire Google Guava dependency into a different namespace -->
<!-- Relocate the entire Google Guava dependency into a different namespace -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
Expand Down
10 changes: 0 additions & 10 deletions flink-addons/flink-streaming/flink-streaming-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ under the License.
<packaging>jar</packaging>

<dependencies>

<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.commons.json</artifactId>
Expand All @@ -47,15 +46,6 @@ under the License.
<artifactId>commons-math</artifactId>
<version>2.2</version>
</dependency>

<!-- guava needs to be in "provided" scope, so to not re-export the dependency -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
<scope>provided</scope>
</dependency>

</dependencies>

<build>
Expand Down
10 changes: 0 additions & 10 deletions flink-addons/flink-streaming/flink-streaming-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ under the License.
<packaging>jar</packaging>

<dependencies>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-core</artifactId>
Expand All @@ -53,15 +52,6 @@ under the License.
<artifactId>flink-streaming-connectors</artifactId>
<version>${project.version}</version>
</dependency>

<!-- guava needs to be in "provided" scope, so to not re-export the dependency -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
<scope>provided</scope>
</dependency>

</dependencies>

<build>
Expand Down
2 changes: 1 addition & 1 deletion flink-addons/flink-yarn/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ under the License.
<version>${project.version}</version>
</dependency>

<!-- guava needs to be in "provided" scope, so to not re-export the dependency -->
<!-- guava needs to be in "provided" scope, to make sure it is not included into the jars by the shading -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
Expand Down
16 changes: 8 additions & 8 deletions flink-clients/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ under the License.
<version>${project.version}</version>
</dependency>

<!-- guava needs to be in "provided" scope, to make sure it is not included into the jars by the shading -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
Expand Down Expand Up @@ -96,14 +104,6 @@ under the License.
<scope>compile</scope>
</dependency>

<!-- guava needs to be in "provided" scope, so to not re-export the dependency -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
Expand Down
6 changes: 1 addition & 5 deletions flink-compiler/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,31 +39,27 @@ under the License.
<groupId>org.apache.flink</groupId>
<artifactId>flink-core</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-runtime</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-java</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
</dependency>

<!-- guava needs to be in "provided" scope, so to not re-export the dependency -->
<!-- guava needs to be in "provided" scope, to make sure it is not included into the jars by the shading -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
<scope>provided</scope>
</dependency>

</dependencies>

</project>
8 changes: 1 addition & 7 deletions flink-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,9 @@ under the License.
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
</exclusions>
</dependency>

<!-- guava needs to be in "provided" scope, so to not re-export the dependency -->
<!-- guava needs to be in "provided" scope, to make sure it is not included into the jars by the shading -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
Expand Down
6 changes: 0 additions & 6 deletions flink-dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,6 @@ under the License.
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-connectors</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
Expand Down
8 changes: 0 additions & 8 deletions flink-examples/flink-java-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@ under the License.
<artifactId>flink-java</artifactId>
<version>${project.version}</version>
</dependency>

<!-- guava needs to be in "provided" scope, so to not re-export the dependency -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>


Expand Down
8 changes: 0 additions & 8 deletions flink-examples/flink-scala-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,6 @@ under the License.
<artifactId>flink-java-examples</artifactId>
<version>${project.version}</version>
</dependency>

<!-- guava needs to be in "provided" scope, so to not re-export the dependency -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
Expand Down
2 changes: 1 addition & 1 deletion flink-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ under the License.
<version>2.24.0</version>
</dependency>

<!-- guava needs to be in "provided" scope, so to not re-export the dependency -->
<!-- guava needs to be in "provided" scope, to make sure it is not included into the jars by the shading -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
Expand Down
16 changes: 8 additions & 8 deletions flink-runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,6 @@ under the License.
<artifactId>commons-cli</artifactId>
</dependency>

<!-- guava needs to be in "provided" scope, so to not re-export the dependency -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
Expand Down Expand Up @@ -89,6 +81,14 @@ under the License.
<artifactId>jettison</artifactId>
<version>1.1</version>
</dependency>

<!-- guava needs to be in "provided" scope, to make sure it is not included into the jars by the shading -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.apache.flink</groupId>
Expand Down
2 changes: 1 addition & 1 deletion flink-scala/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ under the License.
<version>4.0</version>
</dependency>

<!-- guava needs to be in "provided" scope, so to not re-export the dependency -->
<!-- guava needs to be in "provided" scope, to make sure it is not included into the jars by the shading -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion flink-test-utils/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ under the License.
<version>4.11</version>
</dependency>

<!-- guava needs to be in "provided" scope, so to not re-export the dependency -->
<!-- guava needs to be in "provided" scope, to make sure it is not included into the jars by the shading -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
Expand Down
3 changes: 1 addition & 2 deletions flink-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ under the License.

<packaging>jar</packaging>


<dependencies>
<dependency>
<groupId>org.apache.flink</groupId>
Expand Down Expand Up @@ -92,7 +91,7 @@ under the License.
<scope>test</scope>
</dependency>

<!-- guava needs to be in "provided" scope, so to not re-export the dependency -->
<!-- guava needs to be in "provided" scope, to make sure it is not included into the jars by the shading -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
Expand Down

0 comments on commit d5fb423

Please sign in to comment.