Skip to content

Commit

Permalink
Set Java toolchain for spotbugs task
Browse files Browse the repository at this point in the history
  • Loading branch information
popematt committed May 16, 2024
1 parent 444f9e1 commit 6209274
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,13 @@ tasks {
project.gradle.startParameter.excludedTaskNames.add(":spotbugsTest")

spotbugsMain {
launcher.set(
project.javaToolchains.launcherFor {
languageVersion.set(JavaLanguageVersion.of(SUPPORTED_JRE_VERSIONS.min()))
vendor.set(JvmVendorSpec.AMAZON)
}
)

val spotbugsBaselineFile = "$rootDir/config/spotbugs/baseline.xml"

val baselining = project.hasProperty("baseline") // e.g. `./gradlew :spotbugsMain -Pbaseline`
Expand Down

0 comments on commit 6209274

Please sign in to comment.