-
Notifications
You must be signed in to change notification settings - Fork 461
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 plugin: removeFormat "java"
is broken in 5.x
#653
Comments
removeFormat "java"
is broken in 5.x
Ah, yes. It looks like spotless/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessExtension.java Lines 219 to 223 in 43e4e97
As a workaround, rather than calling spotless {
// removeFormat "java" (don't do this)
java {
clearSteps() // do this instead, same effect except it doesn't wipe out the target
target 'src/**/*.java'
googleJavaFormat('1.7')
}
} |
Hi @nedtwigg thanks for the quick response. I'll give that a try and report back. |
@nedtwigg I confirmed that your suggestion worked! Thanks again for your prompt response! |
Thanks for the clean bug report! Is definitely a bug, and we should either fix it or remove the method in 6.x. Not high priority, but I'm gonna leave this open until we get around to one or the other. |
I have a Gradle multiple project setup and I'm trying to upgrade the spotless plugin (https://plugins.gradle.org/plugin/com.diffplug.gradle.spotless) from 3.24.2 to the latest version and I'm running into issues.
My setup looks like this:
This all works for version 3.24.2. However, it fails with the following error starting from version 3.25.0:
This change looks suspicious: https://github.com/diffplug/spotless/blob/main/plugin-gradle/CHANGES.md#3250---2019-10-06 but I don't fully understand it.
Can someone take a look?
gradlew 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: