Skip to content

5.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 06 Dec 12:41
· 600 commits to master since this release

5.0.0 (2021-12-06)

Many thanks for the PR authors in this major release! @rpalcolea @blzsaa @jscancella @KengoTODA

Bug Fixes

  • bump default spotbugs version from 4.4.2 to 4.5.0 (932b215)
  • deprecate methods which will be removed in Gradle v8 (c210b8f, 3a28675), closes #598, #597
  • drop support for Gradle v5 and v6 (97f330f), closes #557
  • set useAuxclasspathFile option by default (3c3779d)
  • stop printing stacktraces by default when ignoreFailures = true (e739a30), closes #266
  • use hybrid worker by default (8c2667a), closes #429 #416
  • Replace deprecated Gradle API
    • stop depending on deprecated JavaPluginConvention (4ab0c8c)
    • stop depending on project.afterEvaluate (809705e), closes #567
    • replace deprecated GUtil API (81ca2f7)
    • replace deprecated setDestination() API (a94168b)
    • replace deprecated JavaExecSpec#setMain(String) (fa63551)
    • deprecated Gradle api usage (#583) (04d6a5e), closes #577

Features

  • print report to console when reporting is not specified (b78a1b3), closes #363 #172
  • support creating multiple reports (751ca27)
  • support Gradle Java Toolchains for JavaExec and WorkerAPI (2978bed), closes #526

BREAKING CHANGES

  • The useAuxclasspathFile option is enabled by default.
  • Each SpotBugsTask will launch a java process by default. It may affect build performance but is necessary to fix the resource leak
  • stacktraces is not printed by default when ignoreFailures = true. set showStackTraces = true explicitly if necessary.
  • Gradle v5 and v6 are now not supported.
  • Behavior without report config has been changed from XML to console.

Migration Guide

To upgrade your spotbugs-gradle-plugin from v4 to v5, follow these steps: