Skip to content

Commit

Permalink
[FLINK-33339][Build/Shaded] Move Guava to parent POM
Browse files Browse the repository at this point in the history
This resolves the problem where `curator-recipes` pulls a different Guava version via a transitive dependency
  • Loading branch information
MartijnVisser committed Oct 23, 2023
1 parent fd6dd83 commit 8723f96
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 4 deletions.
4 changes: 0 additions & 4 deletions flink-shaded-guava-32/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ under the License.

<packaging>jar</packaging>

<properties>
<guava.version>32.1.3-jre</guava.version>
</properties>

<dependencies>
<dependency>
<groupId>com.google.guava</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ under the License.
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- For dependency convergence -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ under the License.
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- For dependency convergence -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ under the License.
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- For dependency convergence -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ under the License.
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- For dependency convergence -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ under the License.
<shading.prefix>org.apache.flink.shaded</shading.prefix>
<netty.version>4.1.100.Final</netty.version>
<jackson.version>2.14.2</jackson.version>
<guava.version>32.1.3-jre</guava.version>
<!-- The license check requires the artifactId to match the directory that the module resides in.
This is not the case for several modules in flink-shaded for legacy reasons.
This property can be used by modules to add a suffix to the artifactId to match the directory name on CI
Expand Down

0 comments on commit 8723f96

Please sign in to comment.