Skip to content

Commit af742e5

Browse files
committed
Tentatively dropped cobertura in favor of jacoco, 'cause java 8
1 parent 4a5a9a9 commit af742e5

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jdk:
44
- oraclejdk8
55

66
after_success:
7-
- "./gradlew cobertura coveralls"
7+
- "./gradlew jacocoTestReport coveralls"
88

99
env:
1010
global:

build.gradle

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
apply plugin: 'java'
22
apply plugin: 'eclipse'
3-
apply plugin: 'cobertura'
3+
//apply plugin: 'cobertura'
4+
apply plugin: 'jacoco'
45
apply plugin: 'com.github.kt3k.coveralls'
56

67
version = '1.0'
@@ -33,12 +34,23 @@ buildscript {
3334
}
3435

3536
dependencies {
36-
classpath 'net.saliman:gradle-cobertura-plugin:2.0.0' // coverage reports :)
37+
// classpath 'net.saliman:gradle-cobertura-plugin:2.2.8' // coverage reports :)
3738
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.0.1'
3839
}
3940
}
4041

41-
cobertura.coverageFormats = ['html' , 'xml']
42+
jacocoTestReport {
43+
reports {
44+
xml.enabled = true
45+
html.enabled = true
46+
}
47+
}
48+
49+
/*cobertura {
50+
coverageFormats = ['html' , 'xml']
51+
/*coverageDirs = ['build/classes/main', 'build/classes/test']
52+
coverageSourceDirs = ['src/main/java']
53+
}*/
4254

4355
uploadArchives {
4456
repositories {

0 commit comments

Comments
 (0)