Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7068

Active dependency management for Google Guice/Guava

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.6.3
    • Fix Version/s: 4.0.0, 4.0.0-alpha-1
    • Component/s: Dependencies
    • Labels:
      None

      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. Only 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 "Important Warnings" #3

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                michael-o Michael Osipov
                Reporter:
                xf01213 Boris Unckel
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: