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/06 17:50:44 UTC

[maven] 01/01: [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 MNG-6549
in repository https://gitbox.apache.org/repos/asf/maven.git

commit a0997922b27975300dac7a47afcf6d2ed9f6b6e0
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 861a02a..56bf6bc 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>