Skip to content

Releases: spotbugs/spotbugs-gradle-plugin

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

6.0.0-beta.3

14 Aug 07:53
Compare
Choose a tag to compare
6.0.0-beta.3 Pre-release
Pre-release

6.0.0-beta.3 (2023-08-14)

Bug Fixes

  • publish Java 11 class files (1c1955e)

6.0.0-beta.2

14 Aug 05:05
Compare
Choose a tag to compare
6.0.0-beta.2 Pre-release
Pre-release

6.0.0-beta.2 (2023-08-14)

Bug Fixes

  • remove deprecated methods SpotBugsTask.getEnabledReports() and SpotBugsTask.getFirstEnabledReport (2ab3c45)

Features

BREAKING CHANGES

  • The convention API provides replacement from 7.1 and later, so we use 7.1
    as minimal required version.

Signed-off-by: Kengo TODA [email protected]

6.0.0-beta.1

13 Aug 19:34
Compare
Choose a tag to compare
6.0.0-beta.1 Pre-release
Pre-release

6.0.0-beta.1 (2023-08-13)

Features

  • rewrite the implementation into Kotlin (#924) (bcf4706)

BREAKING CHANGES

  • This plugin has been rewritten in Kotlin, and it may break the binary compatibility of public API. Intentional changes are listed as follows:

Changes for Groovy buildscripts

About effort and reportLevel properties of SpotBugsTask and SpotBugsExtension, Groovy buildscripts should use use valueOf(String) method explicitly. This limitation is caused by a known issue of the Groovy language:

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

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

Changes 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"
}