-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
59 lines (49 loc) · 1.2 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
apply plugin: 'java'
apply plugin: 'jacoco' // code coverage reports
apply plugin: "com.github.kt3k.coveralls"
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.2"
}
}
jacoco {
toolVersion = "0.7.9"
}
coveralls {
jacocoReportPath = "${buildDir}/reports/jacoco/test/jacocoTestReport.xml"
}
// Generate code coverage reports ... run with jacoco
jacocoTestReport {
additionalSourceDirs = files(sourceSets.main.allJava.srcDirs)
reports {
html.enabled = true // human readable
xml.enabled = true // required by coveralls
csv.enabled false
html.destination file("${buildDir}/jacocoHtml")
}
executionData = files('build/jacoco/test.exec')
}
group 'moneyasword'
version '1.0'
targetCompatibility = 1.7
sourceCompatibility = 1.7
repositories {
mavenCentral()
}
dependencies {
compile 'com.google.guava:guava:23.0'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
sourceSets {
test {
resources {
srcDir "test"
}
}
}
test { finalizedBy jacocoTestReport }