Skip to content

Releases: spotbugs/spotbugs-gradle-plugin

6.0.5

04 Jan 03:40
6f74150
Compare
Choose a tag to compare

6.0.5 (2024-01-04)

Bug Fixes

  • deps: update dependency com.android.tools.build:gradle to v8.2.1 (#1085) (6f74150)

6.0.4

15 Dec 06:23
7710423
Compare
Choose a tag to compare

6.0.4 (2023-12-15)

Bug Fixes

  • Gradle plugin should require JVM 8 but require JVM 11 (#1074) (7710423)

6.0.3

15 Dec 03:29
Compare
Choose a tag to compare

6.0.3 (2023-12-15)

Bug Fixes

  • deps: update dependency com.github.spotbugs:spotbugs to v4.8.3 (ae878ee)

6.0.2

05 Dec 00:48
0248894
Compare
Choose a tag to compare

6.0.2 (2023-12-05)

Bug Fixes

  • deps: update dependency com.tngtech.archunit:archunit to v1.2.1 (#1056) (5500c71)

6.0.1

02 Dec 12:26
Compare
Choose a tag to compare

6.0.1 (2023-12-02)

Bug Fixes

  • deps: update dependency com.android.tools.build:gradle to v8.2.0 (8ffba8e)

6.0.0

02 Dec 09:26
e8d955d
Compare
Choose a tag to compare

6.0.0 (2023-12-02)

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.5

30 Nov 01:05
Compare
Choose a tag to compare

5.2.5 (2023-11-30)

Bug Fixes

  • deps: update dependency com.github.spotbugs:spotbugs to v4.8.2 (b8e8c2c)

6.0.0-rc.3

27 Nov 00:20
Compare
Choose a tag to compare
6.0.0-rc.3 Pre-release
Pre-release

6.0.0-rc.3 (2023-11-27)

Bug Fixes

  • deps: update dependency com.github.spotbugs:spotbugs to v4.8.1 (#1022) (c4a06c4)
  • deps: update dependency com.tngtech.archunit:archunit to v1.2.0 (#1020) (ec52702)
  • reported file paths should be split by comma and space (4711ccf)

5.2.4

26 Nov 23:27
193b24d
Compare
Choose a tag to compare

5.2.4 (2023-11-26)

Bug Fixes

5.2.3

07 Nov 04:12
c4a06c4
Compare
Choose a tag to compare

5.2.3 (2023-11-07)

Bug Fixes

  • deps: update dependency com.github.spotbugs:spotbugs to v4.8.1 (#1022) (c4a06c4)