diff --git a/codegen/build.gradle.kts b/codegen/build.gradle.kts index 0a05423e7fcf..7a822e44b5cd 100644 --- a/codegen/build.gradle.kts +++ b/codegen/build.gradle.kts @@ -14,6 +14,7 @@ */ import org.jreleaser.model.Active +import com.github.spotbugs.snom.Effort plugins { `java-library` @@ -21,7 +22,7 @@ plugins { signing checkstyle jacoco - id("com.github.spotbugs") version "4.7.1" + id("com.github.spotbugs") version "6.0.26" id("org.jreleaser") version "1.18.0" } @@ -240,7 +241,7 @@ subprojects { // Configure the bug filter for spotbugs. spotbugs { - setEffort("max") + effort.set(Effort.MAX) val excludeFile = rootProject.file("gradleConfig/spotbugs/filter.xml") if (excludeFile.exists()) { excludeFilter.set(excludeFile)