-
Notifications
You must be signed in to change notification settings - Fork 473
SpotlessTask: mark target as task input #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
SpotlessTask: mark target as task input #461
Conversation
spotless/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessTask.java Lines 110 to 137 in 3ac6c7c
If you want to fix the warning, I think the right thing is to mark it |
This appears to be a task input from spotless/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/FormatExtension.java Line 598 in a7c74de
I got confused by it 596229e changes that |
Yep. Spotless is a weird case because we modify the input (the source code is the input and the output), so we have to do some tricks to make up-to-date checking work. |
The PR is failing because of a formatting error, run |
of course! done! thanks @nedtwigg |
SpotlessTask
: marktarget
as task input.This fixes issue in Gradle 6.x with
Warning: Type 'com.diffplug.gradle.spotless.SpotlessTask': property 'target' is not annotated with an input or output annotation