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

updated gradle file

parent ee531881
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,6 @@ apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'jacoco'
apply plugin: 'findbugs'
project.version = '1.0.0-SNAPSHOT'
project.group = 'de.prob'
......@@ -58,18 +57,6 @@ jacocoTestReport {
}
}
tasks.withType(FindBugs) {
reports {
xml.enabled = false
html.enabled = true
}
}
findbugs {
ignoreFailures = true
}
test {
exclude('de/tlc4b/tlc/integration/probprivate')
......@@ -110,4 +97,27 @@ task all(dependsOn: tlc4b) <<{
ant.get(src: 'http://tla.msr-inria.inria.fr/tlatoolbox/dist/tla2tools.jar', verbose:true, dest: 'build/tlc4b/')
}
allprojects {
// Marker Task to enable findbugs.
task findbugs(
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
}
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