diff --git a/build.gradle.kts b/build.gradle.kts index 974dfbf10..98bd83ff6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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`