-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
guava:32.1.2-jre
make checkstyle
fail
#6825
Comments
I reproduced this issue with a very simple build script:
and tested for some versions:
error message is:
|
oh I found this in your release note:
I added the following to my test build script:
and it fixed the dependencies conflict in that test build script but I am confused, is this a workaround? or the official solution? also, this does NOT work for our real project, I don't know how to tell gradle to select |
oh~~~ this workaround works for our real project: 😅
looks like it also applied to the transitive dependency of now our project works just fine ~~~ |
Description
We are using
checkstyle
plugin in a gradle (v8.3
) projectcheckstyle
is the latest version10.12.4
, and our project also usecom.google.guava:guava:31.1-jre
and everything works fine
but when I upgrade
guava
to32.1.2-jre
, it makecheckstyle
failed with following error:some investigation:
I checked the dependency list of
checkstyle
: https://checkstyle.sourceforge.io/dependencies.htmllooks like it depends on
com.google.guava:guava:32.0.1-jre
and there is a transitive dependency
com.google.collections:google-collections:1.0
toowhich means,
guava:32.0.1-jre
+google-collections:1.0
+checkstyle 10.12.4
should workso I changed my dependency to
guava:32.0.1-jre
, and it worked!I tested some versions of
guava
:32.1.0-jre
---> failed with same error32.1.1-jre
---> failed with same error32.1.2-jre
---> failed with same error32.1.3-jre
---> failed with same error32.0.0-jre
---> works fine32.0.1-jre
---> works fine31.1-jre
---> works finelooks like this error only occurs in
32.1.x
versionand I check the maven repo: https://repo1.maven.org/maven2/com/google/guava/guava/
the only strange thing I found is:
all the
32.1.x
version has a fileguava-32.1.x-jre.module
, with following content:I am not sure, but I guess this is why gradle cannot resolve
com.google.collections:google-collections:1.0
?Example
The text was updated successfully, but these errors were encountered: