forked from hscrocha/jpacman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
68 lines (54 loc) · 1.32 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
65
66
67
68
plugins {
id 'application'
id 'java'
id 'jacoco'
id 'checkstyle'
id 'pmd'
id "com.github.spotbugs" version "1.7.1"
// id 'idea' // optional (to generate IntelliJ IDEA project files)
}
// gradle site
repositories {
mavenCentral()
}
dependencies {
compile "com.google.guava:guava:$guavaVersion"
compileOnly "com.github.spotbugs:spotbugs-annotations:$spotbugsAnnotationsVersion"
testImplementation "org.junit.jupiter:junit-jupiter:$junitVersion"
testCompile "org.mockito:mockito-core:$mockitoVersion"
testCompile "org.assertj:assertj-core:$assertjVersion"
testCompile "info.cukes:cucumber-java:$cucumberVersion"
testCompile "info.cukes:cucumber-junit:$cucumberVersion"
}
test {
useJUnitPlatform()
}
jacoco {
toolVersion = jacocoVersion
}
checkstyle {
configFile file("checkstyle.xml")
}
pmd {
// ignoreFailures = true
ruleSetFiles "pmd-rules.xml"
ruleSets = []
}
tasks.withType(com.github.spotbugs.SpotBugsTask) {
reports {
xml.enabled = false
html.enabled = true
}
}
task staticAnalysis(type: GradleBuild) {
tasks = [
'clean',
'checkstyleMain',
'checkstyleTest',
'pmdMain',
'pmdTest',
'spotbugsMain',
'spotbugsTest',
]
}
mainClassName = 'nl.tudelft.jpacman.Launcher'