Skip to content

[Bug] Cannot update com.puppycrawl.tools:checkstyle due to conflict #3355

@peternied

Description

@peternied

Description

We cannot bump com.puppycrawl.tools:checkstyle from 10.12.1 to a future version because of a conflict with com.google.collections:google-collections:

Reproduction

  1. Update com.puppycrawl.tools:checkstyle in build.gradle to >10.12.1
  2. ./gradlew checkstyleMain

See this error message

Execution failed for task ':checkstyleMain'.
> Could not resolve all files for configuration ':checkstyle'.
   > Could not resolve com.google.guava:guava:32.0.1-jre.
     Required by:
         project : > com.puppycrawl.tools:checkstyle:10.12.3
      > Module 'com.google.guava:guava' has been rejected:
           Cannot select module with conflict on capability 'com.google.collections:google-collections:32.1.2-jre' also provided by [com.google.collections:google-collections:1.0(runtime)]
   > Could not resolve com.google.collections:google-collections:1.0.
     Required by:
         project : > com.puppycrawl.tools:checkstyle:10.12.3 > org.apache.maven.doxia:doxia-core:1.12.0 > org.codehaus.plexus:plexus-container-default:2.1.0
      > Module 'com.google.collections:google-collections' has been rejected:
           Cannot select module with conflict on capability 'com.google.collections:google-collections:1.0' also provided by [com.google.guava:guava:32.1.2-jre(jreRuntimeElements)]

Exit Criteria

  • Fix the conflict and merge an update to the latest version of com.puppycrawl.tools:checkstyle

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueThese are recommended starting points for newcomers looking to make their first contributions.help wantedCommunity contributions are especially encouraged for these issues.triagedIssues labeled as 'Triaged' have been reviewed and are deemed actionable.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions