Skip to content

Commit 8bb775f

Browse files
committed
fix(codegen): use Effort enum in spotbugs
1 parent c620a1e commit 8bb775f

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`
@@ -240,7 +241,7 @@ subprojects {
240241

241242
// Configure the bug filter for spotbugs.
242243
spotbugs {
243-
setEffort("max")
244+
effort.set(Effort.MAX)
244245
val excludeFile = rootProject.file("gradleConfig/spotbugs/filter.xml")
245246
if (excludeFile.exists()) {
246247
excludeFilter.set(excludeFile)

0 commit comments

Comments
 (0)