-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Enable build cache support #244
Comments
Please make sure this is well tested - simply slapping the I would like to help but it's a matter of finding time to do the work. |
A colleague and I are starting work to add a regression test to ensure the task is correctly cacheable. |
Note that in our testing we found the Projects not setting The workaround we took was to mark |
🎉 This issue has been resolved in version 4.2.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Plugin version 4.0 lost gradle build cache support.
It was enabled in 3.0.0: https://github.com/spotbugs/spotbugs-gradle-plugin/blob/3.0.0/src/main/java/com/github/spotbugs/SpotBugsTask.java#L59
The fix is just to get back the
@CacheableTask
annotation on theSpotBugsTask
.Build cache can be verified as:
gradlew spotbugsMain --build-cache
task status will be SUCCESS (task executed)
gradlew clean
gradlew spotbugsMain --build-cache
task status should be FROM_CACHE (task output taken from the cache without execution)
The text was updated successfully, but these errors were encountered: