You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Boris Unckel (Jira)" <ji...@apache.org> on 2021/01/05 20:57:00 UTC

[jira] [Updated] (MRESOLVER-156) Active dependency management for Google Guice / Google Guava

     [ https://issues.apache.org/jira/browse/MRESOLVER-156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Boris Unckel updated MRESOLVER-156:
-----------------------------------
    Description: 
The current pom includes com.google.inject:guice with the default transitive dependency of com.google.guava:guava. Guava has declared several dependencies, which are not needed at runtime. Onyl com.google.guava:failureaccess is needed.

The proposal is first to add com.google.guava:guava to the excludes of guice. Second guava and failureaccess shall be added as direct dependencies.

This has two advantages: Downstream projects only get the needed dependencies and the version of guava can be independently set.

The runtime dependencies for Guava are explained in the last section of the  [README|https://github.com/google/guava/tree/v30.1] "Important Warnings" #3

  was:
The current pom includes com.google.inject:guice with the default transitive dependency of com.google.guava:guava. Guava has declared several dependencies, which are not needed at runtime. Onyl com.google.guava:failureaccess is needed.

The proposal is first to add com.google.guava:guava to the excludes of guice. Second guava and failureaccess shall be added as direct dependencies.

This has two advantages: Downstream projects only get the needed dependencies and the version of guava can be independently set.


> Active dependency management for Google Guice / Google Guava
> ------------------------------------------------------------
>
>                 Key: MRESOLVER-156
>                 URL: https://issues.apache.org/jira/browse/MRESOLVER-156
>             Project: Maven Resolver
>          Issue Type: Improvement
>          Components: Resolver
>            Reporter: Boris Unckel
>            Priority: Major
>
> The current pom includes com.google.inject:guice with the default transitive dependency of com.google.guava:guava. Guava has declared several dependencies, which are not needed at runtime. Onyl com.google.guava:failureaccess is needed.
> The proposal is first to add com.google.guava:guava to the excludes of guice. Second guava and failureaccess shall be added as direct dependencies.
> This has two advantages: Downstream projects only get the needed dependencies and the version of guava can be independently set.
> The runtime dependencies for Guava are explained in the last section of the  [README|https://github.com/google/guava/tree/v30.1] "Important Warnings" #3



--
This message was sent by Atlassian Jira
(v8.3.4#803005)