Skip to content

Commit

Permalink
optimize build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielLiu1123 committed Oct 26, 2023
1 parent 38dc57e commit 3d1b566
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ subprojects {
if (it =~ /\nimport .*\*;/) {
throw new IllegalStateException("Do not use wildcard imports, 'spotlessApply' cannot resolve this issue, please fix it manually.")
}
})
} as Closure<String>)
}
}

// spotbugs
apply plugin: 'com.github.spotbugs'
spotbugs {
spotbugsTest.enabled = false
omitVisitors.addAll 'FindReturnRef', 'MethodReturnCheck'
omitVisitors.addAll 'FindReturnRef'
excludeFilter = file("${rootDir}/config/spotbugs/exclude.xml")
}
}
Expand All @@ -87,5 +87,4 @@ tasks.register('installGitHook', Copy) {
into { new File(rootProject.rootDir, '.git/hooks') }
fileMode 0775
}

build.dependsOn installGitHook
compileJava.dependsOn installGitHook

0 comments on commit 3d1b566

Please sign in to comment.