-
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
Adopt the latest Gradle APIs #601
Comments
FYI I'm working on these. |
From the migration guide for Gradle 6.5:
Will its public methods become part of |
@nedtwigg do you have particular APIs in mind? I think everything that needs to be public is a part of the Task interface. Part of the reason to remove AbstractTask is to reduce places where internal interfaces leak into the public API (e.g., AbstractTask overrides getInputs to specialize the return type with an internal type). Do you have any examples of deprecations to getProject or getInputs? Is that in the IDE? Eventually something like tasks won't have direct access to the Project, but that's going to be awhile and the current way will keep working for some time. |
The three todo's that we outlined in the top of this issue are now all complete. The only remaining items I can see are:
If anyone wants to explore the |
All of the above has been released in |
There are three main tasks here:
spotless/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessTaskModern.java
Line 40 in ca5f50d
spotless/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessExtensionModern.java
Lines 47 to 48 in ca5f50d
Each TODO can be implemented independently, and should probably be in a separate PR (the bottom two could maybe be in one PR). As detailed in #600, this code is tested by
:plugin-gradle:modernTest
, and is not yet being used by end-users, though it is possible to opt-in with-PspotlessModern=true
.PRs welcome!
The text was updated successfully, but these errors were encountered: