Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Commit

Permalink
Disable spotbugs locally (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
svenreimers authored Sep 29, 2023
1 parent 42ae362 commit 9ba706c
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -330,26 +330,28 @@ allprojects {
errorprone 'com.google.errorprone:error_prone_core:2.22.0'
}

// configuring Spotbugs
apply plugin: 'com.github.spotbugs'
if (System.env.CI || project.findProperty('applySpotbugs')) {
// configuring Spotbugs
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 9ba706c

Please sign in to comment.