Skip to content

Releases: spotbugs/spotbugs-gradle-plugin

5.2.2

07 Nov 02:31
ec52702
Compare
Choose a tag to compare

5.2.2 (2023-11-07)

Bug Fixes

  • deps: update dependency com.tngtech.archunit:archunit to v1.2.0 (#1020) (ec52702)

6.0.0-rc.2

19 Oct 23:49
Compare
Choose a tag to compare
6.0.0-rc.2 Pre-release
Pre-release

6.0.0-rc.2 (2023-10-19)

Bug Fixes

  • deps: update dependency com.google.errorprone:error_prone_core to v2.23.0 (#1010) (cc7699c)
  • update dependency com.github.spotbugs:spotbugs to v4.8.0 (#990) (17eccf7)

Features

6.0.0-rc.1

18 Oct 10:46
a90da5b
Compare
Choose a tag to compare
6.0.0-rc.1 Pre-release
Pre-release

6.0.0-rc.1 (2023-10-18)

BREAKING CHANGES

a. This plugin is now built to Java 11 class file format. It requires Gradle to run on Java 11 or later. (1c1955e)
b. Enable Java Tool Chain support by default (c94b886). To disable it, set useJavaToolchains = false in the spotbugs extension.
c. Drop support for Gradle 7.0 (4b0f800). The convention API provides replacement from 7.1 and later, so we use 7.1 as minimal required version.
d. Remove deprecated methods SpotBugsTask.getEnabledReports() and SpotBugsTask.getFirstEnabledReport (2ab3c45)
e. The effort and reportLevel properties of SpotBugsTask and SpotBugsExtension now accept enum values instead of String instances. Read the following notes for detail.

Note for Groovy buildscripts

Groovy buildscripts should use use valueOf(String) method explicitly for effort and reportLevel properties of SpotBugsTask and SpotBugsExtension. For example:

// before (v5)
spotbugs {
    effort = 'default'
    reportLevel = 'default'
}

// after (v6)
spotbugs {
    effort = Effort.valueOf('DEFAULT')
    reportLevel = Confidence.valueOf('DEFAULT')
}

This limitation is caused by a known issue of the Groovy language.

Note for Kotlin buildscripts

It is recommended to use Gradle 8.2 or later, then you can enjoy the simple property assignment feature by default.

// legacy (Gradle 8.1 and older)
import com.github.spotbugs.snom.Confidence
import com.github.spotbugs.snom.Effort

spotbugs {
    effort.set(Effort.DEFAULT)
    reportLevel.set(Confidence.DEFAULT)
}

// new (Gradle 8.2 and later)
import com.github.spotbugs.snom.Confidence
import com.github.spotbugs.snom.Effort

spotbugs {
    effort = Effort.DEFAULT
    reportLevel = Confidence.DEFAULT
}

It is also possible to use string values, however, it is not recommended due to lack of type-safety:

// new (Gradle 8.2 and later)
import com.github.spotbugs.snom.assign

spotbugs {
    effort = "DEFAULT"
    reportLevel = "DEFAULT"
}

Internal Changes

  • Remove the deplicated SpotBugsRunnerForWorker API (aa75fbc)
  • Replace the usage of duplicated project.buildDir API (5abbf2d)
  • Rewrite the implementation into Kotlin (#924) (bcf4706)

5.2.1

19 Oct 00:00
cc7699c
Compare
Choose a tag to compare

5.2.1 (2023-10-19)

Bug Fixes

  • deps: update dependency com.google.errorprone:error_prone_core to v2.23.0 (#1010) (cc7699c)

6.0.0-beta.5

15 Oct 21:03
bdd1b70
Compare
Choose a tag to compare
6.0.0-beta.5 Pre-release
Pre-release

6.0.0-beta.5 (2023-10-15)

Bug Fixes

  • enable java Tool Chain support by default (c94b886), closes #907
  • remove the deplicated SpotBugsRunnerForWorker API (aa75fbc)
  • replace the usage of deplicated project.buildDir API (5abbf2d)

5.2.0

15 Oct 00:11
4b567d9
Compare
Choose a tag to compare

5.2.0 (2023-10-15)

Features

5.1.5

12 Oct 22:14
17eccf7
Compare
Choose a tag to compare

5.1.5 (2023-10-12)

Bug Fixes

  • update dependency com.github.spotbugs:spotbugs to v4.8.0 (#990) (17eccf7)

6.0.0-beta.4

08 Oct 03:07
83a9be7
Compare
Choose a tag to compare
6.0.0-beta.4 Pre-release
Pre-release

6.0.0-beta.4 (2023-10-08)

Bug Fixes

  • migrate deprecated Gradle API usages (#974) (b1ef0d0) @Goooler
  • SpotBugsTask is not configuration cache safe if a stylesheet is set as String for the HTML report (be95ef5) @KengoTODA

5.1.4

08 Oct 02:00
b1ef0d0
Compare
Choose a tag to compare

5.1.4 (2023-10-08)

Bug Fixes

5.1.3

15 Aug 06:55
Compare
Choose a tag to compare

5.1.3 (2023-08-15)

Bug Fixes

  • SpotBugsTask is not configuration cache safe if a stylesheet is set as String for the HTML report (be95ef5) @KengoTODA