forked from asmcup/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
66 lines (53 loc) · 1.05 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
apply plugin: 'java'
repositories {
jcenter()
}
sourceSets {
main {
java {
srcDirs = ["src/"]
}
resources {
srcDirs = ["src/"]
exclude '**/*.java'
}
}
test {
java {
srcDirs = ['test/']
}
}
}
jar {
manifest {
attributes 'Implementation-Title': 'ASMCup Runtime',
'Main-Class': 'asmcup.sandbox.Main'
}
}
dependencies {
testCompile "junit:junit:4.12"
}
// ------------------ code coverage ------------------------------ //
apply plugin: 'jacoco'
jacoco {
toolVersion = "0.7.6.201602180812"
reportsDir = file("$buildDir/codecoverage")
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination "${buildDir}/codecoverage"
}
}
// ------------------ static analysis ---------------------------- //
apply plugin: 'findbugs'
findbugs {
reportLevel = "high"
}
tasks.withType(FindBugs) {
reports {
xml.enabled false
html.enabled true
}
}