Open lost22git opened 1 month ago
I have same issue
I had the same error, although with Maven, it went away after I added version in spotless-maven-plugin
for <palantirJavaFormat>
The issue has been fixed on palantir version 2.38.0. I think the only outstanding issue you're facing is that spotless is by default pinning an older version of palantir, based on this open issue.
You can fix this by specifying a custom palantir version in your gradle file - if you don't want to wait for this to be upgraded on spotless:
spotless {
java {
palantirJavaFormat("2.38.0")
removeUnusedImports()
}
}
gradle: 8.4 openjdk: 21 palantir-graddle-plugin: 2.38.0