-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
70 lines (57 loc) · 1.51 KB
/
build.gradle
File metadata and controls
70 lines (57 loc) · 1.51 KB
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
69
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'application'
apply plugin: "jacoco"
apply plugin: 'com.github.kt3k.coveralls'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.6.3"
}
}
repositories {
mavenCentral()
}
jacoco {
toolVersion = "0.7.6.201602180812"
reportsDir = file("$projectDir/build/jacocoReportDir")
}
dependencies {
testCompile 'junit:junit:4.12'
testRuntime "org.slf4j:slf4j-api:1.7.10"
}
// create Gradle wrapper with command line `gradle wrapper` in terminal
task wrapper(type: Wrapper) {
gradleVersion = '2.9'
}
test {
dependsOn cleanTest
jacoco {
append = false
destinationFile = file("$projectDir/build/jacoco/jacocoTest.exec")
classDumpFile = file("$projectDir/build/jacoco/classpathdumps")
}
finalizedBy jacocoTestReport
}
jacocoTestReport {
group = "Reporting"
reports {
xml {
enabled true
destination "${projectDir}/build/reports/jacoco/test/jacocoTestReport.xml"
}
}
def testFileFilter = ['**/*Test.*']
classDirectories = fileTree(
dir: "${projectDir}/build/classes",
excludes: testFileFilter
)
}
// Reference: https://github.com/spring-projects/spring-boot/issues/2679
mainClassName = 'algvis.ui.AlgVisStandalone'
tasks.coveralls {
dependsOn test
onlyIf { System.getenv("COVERALLS_REPO_TOKEN") }
}