Skip to content

Commit 3dda85b

Browse files
committed
fix(codegen): use Effort enum in spotbugs
1 parent fc52cb1 commit 3dda85b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

codegen/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
*/
1515

1616
import org.jreleaser.model.Active
17+
import com.github.spotbugs.snom.Effort
1718

1819
plugins {
1920
`java-library`
@@ -242,7 +243,7 @@ subprojects {
242243

243244
// Configure the bug filter for spotbugs.
244245
spotbugs {
245-
setEffort("max")
246+
effort.set(Effort.MAX)
246247
val excludeFile = rootProject.file("gradleConfig/spotbugs/filter.xml")
247248
if (excludeFile.exists()) {
248249
excludeFilter.set(excludeFile)

0 commit comments

Comments
 (0)