Skip to content
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

Apply Gradle's strict plugin types validation to the Spotless plugin in preparation for Gradle 9.0 #2454

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

eskatos
Copy link
Contributor

@eskatos eskatos commented Mar 22, 2025

Enable Gradle Plugin types strict validation by the :gradle-plugin:validatePlugins task. ValidatePlugins checks property annotations on work items like tasks and artifact transforms. Stricter validation adds forward-moving rules that will be promoted to regular validation. Most often in the next Gradle major version. With Gradle 9.0 coming soon, it's time to move forward. Having a release of the stopless plugin with these fixes before Gradle 9.0 will ensure a smooth transition for users.

This commit adds the missing mandatory cacheability annotations reported by the stricter rules on SpotlessTask, SpotlessApply, SpotlessCheck and SpotlessDiagnoseTask.

eskatos added 2 commits March 22, 2025 03:53
Enable Gradle Plugin types strict validation by the :gradle-plugin:validatePlugins task. The task now applies more rules for plugin types.

Add missing mandatory cacheability annotations on SpotlessTask, SpotlessApply, SpotlessCheck and SpotlessDiagnoseTask.
@eskatos eskatos marked this pull request as ready for review March 22, 2025 03:47
@eskatos eskatos changed the title Apply Gradle's strict plugin types validation to the Spotless plugin Apply Gradle's strict plugin types validation to the Spotless plugin in preparation for Gradle 9.0 Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant