Skip to content
Snippets Groups Projects
Commit 91e0979f authored by hansen's avatar hansen
Browse files

disable findbugs by default

parent 61971375
Branches
Tags
No related merge requests found
...@@ -2,11 +2,12 @@ apply plugin: 'java' ...@@ -2,11 +2,12 @@ apply plugin: 'java'
apply plugin: 'eclipse' apply plugin: 'eclipse'
apply plugin: 'maven' apply plugin: 'maven'
apply plugin: 'jacoco' apply plugin: 'jacoco'
apply plugin: 'findbugs'
project.version = '1.0.0-SNAPSHOT' project.version = '1.0.0-SNAPSHOT'
project.group = 'de.prob' project.group = 'de.prob'
//sourceCompatibility = 1.5 sourceCompatibility = 1.5
repositories { repositories {
mavenCentral() mavenCentral()
...@@ -104,31 +105,16 @@ task tlc4b(dependsOn: build) << { ...@@ -104,31 +105,16 @@ task tlc4b(dependsOn: build) << {
} }
} }
task all(dependsOn: tlc4b) <<{ tasks.withType(FindBugs) {
ant.get(src: 'http://tla.msr-inria.inria.fr/tlatoolbox/dist/tla2tools.jar', verbose:true, dest: 'build/tlc4b/') // disable findbugs by default
} // in order to run findbugs type 'gradle tlc4b findbugsMain findbugsTest'
task -> enabled = gradle.startParameter.taskNames.contains(task.name)
allprojects { reports {
// Marker Task to enable findbugs. xml.enabled = false
task findbugs( html.enabled = true
group: "Verification",
description: """Marker task to enabled findbugs. Findbugs is by default
disabled. E.g. ( ./gradlew findbugs build )"""
)
} }
subprojects {
apply plugin: 'findbugs'
findbugs {
// your findbugs configuration.
ignoreFailures = true ignoreFailures = true
}
gradle.taskGraph.whenReady { taskGraph ->
tasks.findbugsMain.onlyIf { taskGraph.hasTask((tasks.findbugs)) }
tasks.findbugsTest.onlyIf { taskGraph.hasTask((tasks.findbugs)) }
} }
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment