-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
55 lines (47 loc) · 1.08 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
plugins {
id 'java'
id 'application'
id 'checkstyle'
id 'com.github.spotbugs' version '4.0.0'
id 'pmd'
id 'jacoco'
id 'com.github.kt3k.coveralls' version '2.8.4'
}
configurations {
checkstyleConfig
}
def versions = [
checkstyle: '8.10.1',
]
repositories {
jcenter()
}
dependencies {
testImplementation 'junit:junit:4.12'
checkstyleConfig ("com.puppycrawl.tools:checkstyle:${versions.checkstyle}") {
transitive = false
}
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.10.1'
}
checkstyle {
showViolations = true
ignoreFailures = false
toolVersion = "${versions.checkstyle}"
config = resources.text.fromArchiveEntry(configurations.checkstyleConfig, 'google_checks.xml')
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
spotbugsMain {
reports {
html {
enabled = true
destination = file("$buildDir/reports/spotbugs/main/spotbugs.html")
stylesheet = 'fancy-hist.xsl'
}
}
}
mainClassName = 'Main'