Line | |
---|
1 | findbugs {
|
---|
2 | toolVersion = project.property('tool.findbugs.version')
|
---|
3 | ignoreFailures = true
|
---|
4 | effort = "max"
|
---|
5 | reportLevel = "low"
|
---|
6 | }
|
---|
7 | tasks.withType(FindBugs) {
|
---|
8 | reports {
|
---|
9 | xml.enabled = false
|
---|
10 | html.enabled = true
|
---|
11 | }
|
---|
12 | }
|
---|
13 |
|
---|
14 | jacoco {
|
---|
15 | toolVersion = project.property('tool.jacoco.version')
|
---|
16 | }
|
---|
17 | jacocoTestReport {
|
---|
18 | reports {
|
---|
19 | xml.enabled true
|
---|
20 | html.destination "$buildDir/reports/jacoco"
|
---|
21 | }
|
---|
22 | }
|
---|
23 | build.dependsOn jacocoTestReport
|
---|
24 |
|
---|
25 | pmd {
|
---|
26 | toolVersion project.property('tool.pmd.version')
|
---|
27 | ignoreFailures true
|
---|
28 | targetJdk 1.7 // 1.8 is not yet available (as of Gradle 3.0, see https://docs.gradle.org/current/javadoc/org/gradle/api/plugins/quality/TargetJdk.html)
|
---|
29 | ruleSetConfig = resources.text.fromFile('config/pmd/ruleset.xml')
|
---|
30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.