spotbugs / spotbugs-gradle-plugin

https://plugins.gradle.org/plugin/com.github.spotbugs
Apache License 2.0
178 stars 67 forks source link

Gradle 8.8 Deprecation - Configuration.files() #1188

Closed brianwyka closed 2 months ago

brianwyka commented 2 months ago

Deprecation in Gradle causes builds to fail when having the following gradle property set:

org.gradle.warning.mode = fail

Versions:

Running SpotBugs by Gradle no-isolated Worker...
The Configuration.files(Spec) method has been deprecated. This is scheduled to be removed in Gradle 9.0. Use Configuration.getIncoming().artifactView(Action) with a componentFilter instead. Consult the upgrading guide for further information: https://docs.gradle.org/8.8/userguide/upgrading_version_8.html#deprecate_filtered_configuration_file_and_filecollection_methods

Offending code (I believe): https://github.com/spotbugs/spotbugs-gradle-plugin/blob/93a8aa105bb8fe9ef9422fad891592d238323d20/src/main/kotlin/com/github/spotbugs/snom/SpotBugsTask.kt#L368-L370

hazendaz commented 2 months ago

have you tried the latest that was updated for gradle 8.8? Try 6.0.16.

brianwyka commented 2 months ago

That fixed it. Thanks!