Skip to content

Releases: spotbugs/spotbugs-gradle-plugin

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

5.1.2

09 Aug 00:02
c6f2ec9
Compare
Choose a tag to compare

5.1.2 (2023-08-09)

Bug Fixes

5.1.1

03 Aug 13:16
Compare
Choose a tag to compare

5.1.1 (2023-08-03)

Bug Fixes

5.1.0

31 Jul 23:59
Compare
Choose a tag to compare

5.1.0 (2023-07-31)

Features

  • Drop support for SpotBugs 4.4.x and older (7b514e9)

5.0.15

31 Jul 23:49
65a3818
Compare
Choose a tag to compare

5.0.15 (2023-07-31)

Bug Fixes

  • Spotbugs plugin dependencies are specified as plugins and cause NullPointerException (b107318)

5.0.14

22 Mar 01:34
d068aa2
Compare
Choose a tag to compare

5.0.14 (2023-03-22)

Bug Fixes

  • use internal property to avoid issues with configuration cache (#857) (d068aa2), closes #670

5.0.13

18 Oct 21:27
Compare
Choose a tag to compare

5.0.13 (2022-10-18)

Bug Fixes

  • bump default spotbugs version from 4.7.2 to 4.7.3 (80a677f)