-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Transitive dependency rejection after Guava upgrade to 32.1.3-jre #14123
Comments
@dtrunk90, if you know a fix please send a PR. |
by upgrading transitively used plexus-container-default to 2.1.1 before: ``` [INFO] --- dependency:3.6.1:tree (default-cli) @ checkstyle --- [INFO] com.puppycrawl.tools:checkstyle:jar:10.12.7-SNAPSHOT (...) [INFO] +- org.apache.maven.doxia:doxia-core:jar:1.12.0:compile [INFO] | +- org.apache.maven.doxia:doxia-sink-api:jar:1.12.0:compile [INFO] | +- org.apache.maven.doxia:doxia-logging-api:jar:1.12.0:compile [INFO] | +- org.codehaus.plexus:plexus-utils:jar:3.3.0:compile [INFO] | +- org.codehaus.plexus:plexus-container-default:jar:2.1.0:compile [INFO] | | +- org.codehaus.plexus:plexus-classworlds:jar:2.6.0:compile [INFO] | | +- org.apache.xbean:xbean-reflect:jar:3.7:compile [INFO] | | \- com.google.collections:google-collections:jar:1.0:compile [INFO] | +- org.codehaus.plexus:plexus-component-annotations:jar:2.1.0:compile (...) ``` after: ``` [INFO] --- dependency:3.6.1:tree (default-cli) @ checkstyle --- [INFO] com.puppycrawl.tools:checkstyle:jar:10.12.7-SNAPSHOT (...) [INFO] +- org.apache.maven.doxia:doxia-core:jar:1.12.0:compile [INFO] | +- org.apache.maven.doxia:doxia-sink-api:jar:1.12.0:compile [INFO] | +- org.apache.maven.doxia:doxia-logging-api:jar:1.12.0:compile [INFO] | +- org.codehaus.plexus:plexus-utils:jar:3.3.0:compile [INFO] | +- org.codehaus.plexus:plexus-container-default:jar:2.1.1:compile [INFO] | | +- org.codehaus.plexus:plexus-classworlds:jar:2.6.0:compile [INFO] | | \- org.apache.xbean:xbean-reflect:jar:3.7:compile [INFO] | +- org.codehaus.plexus:plexus-component-annotations:jar:2.1.0:compile (...) ```
by upgrading transitively used plexus-container-default to 2.1.1 before: ``` [INFO] --- dependency:3.6.1:tree (default-cli) @ checkstyle --- [INFO] com.puppycrawl.tools:checkstyle:jar:10.12.7-SNAPSHOT (...) [INFO] +- org.apache.maven.doxia:doxia-core:jar:1.12.0:compile [INFO] | +- org.apache.maven.doxia:doxia-sink-api:jar:1.12.0:compile [INFO] | +- org.apache.maven.doxia:doxia-logging-api:jar:1.12.0:compile [INFO] | +- org.codehaus.plexus:plexus-utils:jar:3.3.0:compile [INFO] | +- org.codehaus.plexus:plexus-container-default:jar:2.1.0:compile [INFO] | | +- org.codehaus.plexus:plexus-classworlds:jar:2.6.0:compile [INFO] | | +- org.apache.xbean:xbean-reflect:jar:3.7:compile [INFO] | | \- com.google.collections:google-collections:jar:1.0:compile [INFO] | +- org.codehaus.plexus:plexus-component-annotations:jar:2.1.0:compile (...) ``` after: ``` [INFO] --- dependency:3.6.1:tree (default-cli) @ checkstyle --- [INFO] com.puppycrawl.tools:checkstyle:jar:10.12.7-SNAPSHOT (...) [INFO] +- org.apache.maven.doxia:doxia-core:jar:1.12.0:compile [INFO] | +- org.apache.maven.doxia:doxia-sink-api:jar:1.12.0:compile [INFO] | +- org.apache.maven.doxia:doxia-logging-api:jar:1.12.0:compile [INFO] | +- org.codehaus.plexus:plexus-utils:jar:3.3.0:compile [INFO] | +- org.codehaus.plexus:plexus-container-default:jar:2.1.1:compile [INFO] | | +- org.codehaus.plexus:plexus-classworlds:jar:2.6.0:compile [INFO] | | \- org.apache.xbean:xbean-reflect:jar:3.7:compile [INFO] | +- org.codehaus.plexus:plexus-component-annotations:jar:2.1.0:compile (...) ```
by upgrading plexus-container-default to 2.1.1 which gets used by doxia-core
This reverts commit 13024ac. Reason: checkstyle/checkstyle#14123
@dtrunk90 update is merged, would you like us to make a release so that you can get this resolved sooner on your end? |
Completed via #14140 |
Speaking only for me: I don't need to get this resolved sooner. Thank you. |
We will release it by regular schedule, end of month. |
This still happens with 10.13.0:
|
I am seeing this with 10.13.0 as well. Please reopen. While Gradle's dependency replacement can be used to swap Guava for Google Collections, this is clumsy and unworkable when custom checks are used. |
…va upgrade to 32.1.3-jre
…va upgrade to 32.1.3-jre
…va upgrade to 32.1.3-jre
…va upgrade to 32.1.3-jre
…va upgrade to 32.1.3-jre
…va upgrade to 32.1.3-jre
…va upgrade to 32.1.3-jre
I can confirm that this problem still exists with v10.13.0. The last usable version is 10.12.5. Everything newer is broken. |
there was some follow-up discussion in #14211 the workaround did not work in gradle because it seems gradle does not respect it also discusses the currently available workaround that has to be applied to your build script manually:
|
@XN137 Thanks for the update! 👍 |
@romani I can confirm that 10.14.2 works across all my projects including Checkstyle extensions. A big thank you for driving the final fix and subsequent release! |
Yes, it's fixed now. Thank you! :-) |
Verified with: ------------------------------------------------------------
Gradle 8.6
------------------------------------------------------------
Build time: 2024-02-02 16:47:16 UTC
Revision: d55c486870a0dc6f6278f53d21381396d0741c6e
Kotlin: 1.9.20
Groovy: 3.0.17
Ant: Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM: 17.0.10 (Eclipse Adoptium 17.0.10+7)
OS: Mac OS X 14.4 aarch64
|
With checkstyle 10.12.6 guava was upgraded from 32.0.1-jre to 32.1.3-jre
Since there'S also a transitive dependency to
com.google.collections:google-collections:1.0
throughorg.apache.maven.doxia:doxia-core:1.12.0
gradle task:checkstyleMain
fails with:There's a workaround reported here: gradle/gradle#27035 (comment)
But I guess it's better to exclude
com.google.collections:google-collections:1.0
because it's part of guava anyway.See also https://github.com/slugify/slugify/actions/runs/7125400022/job/19431918771?pr=175 if you need a reproduction.
The text was updated successfully, but these errors were encountered: