Skip to content

Commit

Permalink
Disable spotbugs locally
Browse files Browse the repository at this point in the history
  • Loading branch information
svenreimers committed Sep 29, 2023
1 parent d274750 commit a88a17a
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -337,25 +337,27 @@ allprojects {
}

// configuring Spotbugs
apply plugin: 'com.github.spotbugs'
if (System.env.CI || project.findProperty('applySpotbugs')) {
apply plugin: 'com.github.spotbugs'

tasks.withType(com.github.spotbugs.snom.SpotBugsTask).configureEach {
// fail build in case a failure was detected
ignoreFailures = false
tasks.withType(com.github.spotbugs.snom.SpotBugsTask).configureEach {
// fail build in case a failure was detected
ignoreFailures = false

jvmArgs.add '--module-path'
jvmArgs.add getJvmModulePath()
jvmArgs.add '--add-modules'
jvmArgs.add getJvmAdditionalModules()
jvmArgs.add '--module-path'
jvmArgs.add getJvmModulePath()
jvmArgs.add '--add-modules'
jvmArgs.add getJvmAdditionalModules()

excludeFilter = rootProject.file('spotbugs-exclude.xml')
excludeFilter = rootProject.file('spotbugs-exclude.xml')

reports {
xml.required.set(false)
html.required.set(true)
}
reports {
xml.required.set(false)
html.required.set(true)
}

auxClassPaths = auxClassPaths + configurations.javafx + configurations.jaxb
auxClassPaths = auxClassPaths + configurations.javafx + configurations.jaxb
}
}

// configuring Versions plugin
Expand Down

0 comments on commit a88a17a

Please sign in to comment.