Skip to content

Commit

Permalink
Make sure dependencies converges
Browse files Browse the repository at this point in the history
Use the maven enforcer plugin dependencyConvergence ([1]) rule to make sure that all dependencies converge. When conflicts were detected, the higher version has been choosen.

Note that this is a work in progress...

[1]: http://maven.apache.org/enforcer/enforcer-rules/dependencyConvergence.html
  • Loading branch information
Reynald Borer committed Feb 24, 2017
1 parent c9a4ea6 commit ffe1b55
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 3 deletions.
84 changes: 82 additions & 2 deletions google-cloud-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,42 @@
<groupId>com.google.guava</groupId>
<artifactId>guava-jdk5</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client-jackson2</artifactId>
<!-- version 1.19.0 -->
</exclusion>
<exclusion>
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client</artifactId>
<!-- version 1.19.0 -->
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client</artifactId>
<version>1.21.0</version>
<scope>compile</scope>
<exclusions>
<exclusion>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<!-- version 1.3.9 -->
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.oauth-client</groupId>
<artifactId>google-oauth-client</artifactId>
<version>1.21.0</version>
<scope>compile</scope>
<exclusions>
<exclusion>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
Expand Down Expand Up @@ -101,12 +124,19 @@
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.0.0</version>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf</artifactId>
<version>${grpc.version}</version>
<exclusions>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<!-- version 18.0 -->
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.api</groupId>
Expand All @@ -117,17 +147,57 @@
<groupId>io.grpc</groupId>
<artifactId>grpc-all</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<!-- version 16.0.1 -->
</exclusion>
<exclusion>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<!-- version 2.8.2 -->
</exclusion>
<exclusion>
<groupId>com.google.auth</groupId>
<artifactId>google-auth-library-credentials</artifactId>
<!-- version 0.4.0 -->
</exclusion>
<exclusion>
<groupId>com.google.auth</groupId>
<artifactId>google-auth-library-oauth2-http</artifactId>
<!-- version 0.4.0 -->
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-common-protos</artifactId>
<version>0.1.5</version>
<version>0.1.6</version>
<exclusions>
<exclusion>
<groupId>io.grpc</groupId>
<artifactId>grpc-all</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.auto.value</groupId>
<artifactId>auto-value</artifactId>
<!-- version 1.1 -->
</exclusion>
<exclusion>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<!-- version 3.0.0 -->
</exclusion>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<!-- version 18.0 -->
</exclusion>
<exclusion>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<!-- version 2.8.2 -->
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand All @@ -139,6 +209,16 @@
<groupId>io.grpc</groupId>
<artifactId>grpc-all</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<!-- version 3.0.0 -->
</exclusion>
<exclusion>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-common-protos</artifactId>
<!-- version 0.1.5 -->
</exclusion>
</exclusions>
</dependency>
</dependencies>
Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
<version>1.4.1</version>
<executions>
<execution>
<id>enforce-maven</id>
<id>enforce</id>
<goals>
<goal>enforce</goal>
</goals>
Expand All @@ -178,6 +178,7 @@
<requireJavaVersion>
<version>[1.7,)</version>
</requireJavaVersion>
<dependencyConvergence/>
</rules>
</configuration>
</execution>
Expand Down

0 comments on commit ffe1b55

Please sign in to comment.