-
Notifications
You must be signed in to change notification settings - Fork 460
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
Gradle spotlessApply fails under Java 21 with 6.23.3 #1944
Comments
Wired, your case should be handled by a6495ed. I can't repro it in LawnchairLauncher/lawnchair#3823: spotless {
java {
palantirJavaFormat()
target("lawnchair/src/**/*.java")
}
kotlin {
ktlint()
target("lawnchair/src/**/*.kt")
}
} Your project is so large, can you create a minimum reproducer? |
Why does the size matter? Just checkout and run |
@Goooler I noticed your discussion palantir/palantir-java-format#939 (comment) talking about transitive dependencies in Guava. This sounded like exactly the problem I'm having so I manually set |
Have you read my comment above? |
Yes, that's why I added two comments to this ticket in direct response to your comment... |
|
Easier to just fix it myself: #1948 |
If you are submitting a bug, please include the following:
After upgrading to plugin 6.23.3 which is supposed to have a fix for Java 21 support, I still am unable to run
spotlessApply
with Gradle 8.5 and Java 21 temurin. It is unable to resolve the following transitive dependencies and looks as though their version is incorrectly.
instead of a semver:com.google.code.findbugs:jsr305:.
org.checkerframework:checker-qual:.
com.google.errorprone:error_prone_annotations:.
8.5
com.diffplug.spotless:spotless-plugin-gradle:6.23.3
MacOS 14
hashgraph/hedera-mirror-node#7294
7233-java-21
branchgradlew spotless[Apply/Check] --stacktrace
If you're just submitting a feature request or question, no need for the above.
The text was updated successfully, but these errors were encountered: