-
Notifications
You must be signed in to change notification settings - Fork 455
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
Task spotlessJava not triggering when only formatting code #127
Comments
I've seen that
While this one doesn't:
|
Hi @carcaret, glad to see that you managed to resolve your problem. On a kind of related note, I highly encourage you to use the |
Any chance we can get a link to the project you're using it on? |
@carcaret : I am responsible for the code change #109, declaring
I got:
I am using a slightly different gradle and java version, but that should not have cause the issue. Anything else you can think of, which is different in your set-up? |
I´ve tried to reproduce the issue at home in a simple project with no success. |
Thanks a lot.
|
I've been trying with no success to reproduce the error using the original |
No worries. There are many different setups possible with Gradle, so I can't test them all. Hence I depend on user feedback. Thanks for the clarification.
|
We do some tricky stuff to make up-to-date checking work. |
I'm not sure if this has been discussed before or it's intended behavior.
I've just added the plugin to an existing project for code formatting. When running a new build, I've noticed that this configuration is not triggering the
spotlessJava
task, so the build is successful even though the code is badly formatted:However, adding for instance a call to
removeUnusedImports()
before seems to triggerspotlessJava
task successfully and the build therefore fails as intended since the code is not formatted:Shouldn't the first configuration trigger the
spotlessJava
task and make the build fail?I'm using Gradle v3.4.1 and Java 1.8.0_131-b11
The text was updated successfully, but these errors were encountered: