Added spotbugs and errorprone plugins.
This commit is contained in:
parent
05531406a9
commit
dc82c66d68
3 changed files with 27 additions and 1 deletions
12
build.gradle
12
build.gradle
|
@ -4,8 +4,12 @@ plugins {
|
|||
id "com.jfrog.bintray" version "1.8.3"
|
||||
id "com.github.ben-manes.versions" version "0.20.0"
|
||||
id "net.thauvin.erik.gradle.semver" version "0.9.5-beta"
|
||||
id "com.github.spotbugs" version "1.6.2"
|
||||
id "net.ltgt.errorprone" version "0.0.14"
|
||||
}
|
||||
|
||||
|
||||
import com.github.spotbugs.SpotBugsTask
|
||||
import org.apache.tools.ant.taskdefs.condition.Os
|
||||
|
||||
defaultTasks 'check'
|
||||
|
@ -35,6 +39,7 @@ repositories {
|
|||
|
||||
dependencies {
|
||||
compile 'com.github.spullara.mustache.java:compiler:0.9.5'
|
||||
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.7.1'
|
||||
testCompile 'org.testng:testng:6.14.3'
|
||||
}
|
||||
|
||||
|
@ -137,6 +142,13 @@ test {
|
|||
useTestNG()
|
||||
}
|
||||
|
||||
tasks.withType(SpotBugsTask) {
|
||||
reports {
|
||||
xml.enabled = false
|
||||
html.enabled = true
|
||||
}
|
||||
excludeFilter = file("$projectDir/config/spotbugs/excludeFilter.xml")
|
||||
}
|
||||
compileJava {
|
||||
options.compilerArgs.add('-proc:none')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue