You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing the toolVersion will not force the SpotBugs plugin to execute the tasks again. This can be problematic for example when bumping SpotBugs version automatically in CI, where new detectors won't flag newly discovered issues. The provided zip-file is a standalone project that reproduces the issue. This happens on all tested versions of the SpotBugs Gradle plugin, even the latest.
Run ./gradlew :spotbugsMain, it will pass correctly.
Change toolVersion to "4.8.3"
Run ./gradlew :spotbugsMain, it will pass incorrectly.
Run ./gradlew :spotbugsMain --rerun-tasks, it will fail correctly.
Run ./gradlew :spotbugsMain, it will fail correctly.
Seemingly, the problem is that the tool version property is not propagated as task input in any way, either as-is or as part of a classpath.
Changing the
toolVersion
will not force the SpotBugs plugin to execute the tasks again. This can be problematic for example when bumping SpotBugs version automatically in CI, where new detectors won't flag newly discovered issues. The provided zip-file is a standalone project that reproduces the issue. This happens on all tested versions of the SpotBugs Gradle plugin, even the latest../gradlew :spotbugsMain
, it will pass correctly../gradlew :spotbugsMain
, it will pass incorrectly../gradlew :spotbugsMain --rerun-tasks
, it will fail correctly../gradlew :spotbugsMain
, it will fail correctly.Seemingly, the problem is that the tool version property is not propagated as task input in any way, either as-is or as part of a classpath.
spotbugs-gradle-plugin-toolversion-input-bug.zip
The text was updated successfully, but these errors were encountered: