You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2019/07/20 09:34:27 UTC

[maven] branch master updated: [MNG-6549] Remove unused transitive dependencies of Guava

This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git


The following commit(s) were added to refs/heads/master by this push:
     new f7b4a65  [MNG-6549] Remove unused transitive dependencies of Guava
f7b4a65 is described below

commit f7b4a657dbb0bd445bf5628a07c4a028510302ed
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Sat Jul 6 19:49:31 2019 +0200

    [MNG-6549] Remove unused transitive dependencies of Guava
    
    while at it, did a little bit of cleanup:
    - removed aopalliance (like done in maven-resolver-provider)
    - removed guice dependency management that should be part of MNG-6475
---
 maven-embedder/pom.xml | 27 +++++++++++++++++++++++++++
 pom.xml                |  5 -----
 2 files changed, 27 insertions(+), 5 deletions(-)

diff --git a/maven-embedder/pom.xml b/maven-embedder/pom.xml
index 33fd43a..d6098ff 100644
--- a/maven-embedder/pom.xml
+++ b/maven-embedder/pom.xml
@@ -78,6 +78,33 @@ under the License.
        <groupId>com.google.inject</groupId>
        <artifactId>guice</artifactId>
        <classifier>no_aop</classifier>
+       <exclusions>
+         <exclusion>
+           <groupId>aopalliance</groupId>
+           <artifactId>aopalliance</artifactId>
+         </exclusion>
+         <!-- MNG-6549 remove unused transitive dependencies of Guava, that is a dependency of Guice -->
+         <exclusion>
+           <groupId>com.google.code.findbugs</groupId>
+           <artifactId>jsr305</artifactId>
+         </exclusion>
+         <exclusion>
+           <groupId>org.checkerframework</groupId>
+           <artifactId>checker-compat-qual</artifactId>
+         </exclusion>
+         <exclusion>
+           <groupId>com.google.errorprone</groupId>
+           <artifactId>error_prone_annotations</artifactId>
+         </exclusion>
+         <exclusion>
+           <groupId>com.google.j2objc</groupId>
+           <artifactId>j2objc-annotations</artifactId>
+         </exclusion>
+         <exclusion>
+           <groupId>org.codehaus.mojo</groupId>
+           <artifactId>animal-sniffer-annotations</artifactId>
+         </exclusion>
+       </exclusions>
      </dependency>
     <dependency>
       <groupId>javax.inject</groupId>
diff --git a/pom.xml b/pom.xml
index 0db11dd..af2618d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -240,11 +240,6 @@ under the License.
         <groupId>com.google.inject</groupId>
         <artifactId>guice</artifactId>
         <version>${guiceVersion}</version>
-      </dependency>
-      <dependency>
-        <groupId>com.google.inject</groupId>
-        <artifactId>guice</artifactId>
-        <version>${guiceVersion}</version>
         <classifier>no_aop</classifier>
       </dependency>
       <dependency>