Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency conflict with guava In gradle when compiling with checkstyle gradle plugin 10.12.7 #14332

Closed
Siedlerchr opened this issue Jan 22, 2024 · 3 comments

Comments

@Siedlerchr
Copy link

Siedlerchr commented Jan 22, 2024

Updated from check style 10.12.5 to 10.12.7, and now I am running into a gradle dependency error with guava.

We have an existing dependency on guava 33.0.0.

The run log can be found here:

https://github.com/JabRef/jabref/actions/runs/7612290247/job/20729581365?pr=10812
JabRef/jabref#10812

Error log:

 What went wrong:
Execution failed for task ':checkstyleMain'.
> Could not resolve all files for configuration ':checkstyle'.
> Task :checkstyleMain FAILED
   > Could not resolve com.google.guava:guava:33.0.0-jre.
     Required by:

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
         project : > ### com.puppycrawl.tools:checkstyle:10.12.7
      > Module 'com.google.guava:guava' has been rejected:
           Cannot select module with conflict on capability 'com.google.collections:google-collections:33.0.0-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.7 > 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:33.0.0-jre(jreRuntimeElements)]
@Siedlerchr
Copy link
Author

Ah I see a duplicate of #14211

@romani romani changed the title Dependency conflict with guava In gradle when compiling with checkstyle gradle plugin 10.7.2 Dependency conflict with guava In gradle when compiling with checkstyle gradle plugin 10.12.7 Jan 23, 2024
@romani
Copy link
Member

romani commented Jan 23, 2024

@Siedlerchr
Copy link
Author

Yes that is a workaround. I found this in the other linked issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants