spotbugs-gradle-plugin
spotbugs-gradle-plugin copied to clipboard
Changing stylesheet does not invalidate gradle build cache
Pre-requisite: have build caching enabled in Gradle
- Create an HTML report with a stylesheet
- Change the stylesheet in the plugin config
- Run the gradle task again
- Task result is loaded from build cache, and new stylesheet is not applied
Thanks for your share, and this issue has successfully been reproduced by ad28ad9c5941bd094b6d089ae96dc2a2c0d46770
Currently we cannot annotate TextResource by @Input like 6b22c2111f6e487225a69294c008f7349245dd4a due to the following error:
Cannot fingerprint input property 'enabledReports.$0.stylesheet': value 'entry 'fancy-hist.xsl' in archive file collection' cannot be serialized.
We also need to care about the following issue reported to the Gradle project:
https://github.com/gradle/gradle/issues/8473
I will watch updates in the Gradle side, to fix this problem in future.