-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
64 lines (54 loc) · 1.3 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
buildscript {
ext {
lombokVersion = '1.16.20'
logbackVersion = '1.2.3'
slf4jVersion = '1.7.25'
}
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "io.franzbecker:gradle-lombok:1.14"
classpath "gradle.plugin.com.github.spotbugs:spotbugs-gradle-plugin:1.6.2"
}
}
apply plugin: "java"
apply plugin: "com.github.spotbugs"
apply plugin: "io.franzbecker.gradle-lombok"
repositories {
mavenCentral()
jcenter()
}
defaultTasks 'clean', 'check'
lombok {
version = project.lombokVersion
}
spotbugs {
toolVersion = '3.1.3'
ignoreFailures = true
effort = 'max'
showProgress = true
}
sourceSets {
// we define `main` sourceSet here, so SpotBugs Gradle Plugin generates `spotbugsMain` task
main {
java.srcDirs = ['src/main/java']
}
}
// To generate an HTML report instead of XML
tasks.withType(com.github.spotbugs.SpotBugsTask) {
reports {
xml.enabled = false
html.enabled = true
}
}
dependencies {
compile "org.slf4j:slf4j-api:$slf4jVersion"
compile "org.slf4j:jul-to-slf4j:$slf4jVersion"
compile "org.slf4j:log4j-over-slf4j:$slf4jVersion"
compile "ch.qos.logback:logback-classic:$logbackVersion"
testCompile 'junit:junit:4.12'
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.7.1'
}