Skip to content

Commit f98d2f8

Browse files
committed
Update coveralls configuration
1 parent 0b4aac1 commit f98d2f8

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

build.gradle

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ buildscript {
77
jcenter()
88
maven { url 'https://maven.fabric.io/public' }
99
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
10+
maven { url 'https://plugins.gradle.org/m2/' }
1011
}
1112
dependencies {
1213
classpath 'com.android.tools.build:gradle:4.0.0'
13-
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.3'
14+
classpath 'gradle.plugin.org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.10.2'
1415
classpath 'com.palantir:jacoco-coverage:0.4.0'
1516
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.11.0"
1617
classpath 'com.google.gms:google-services:4.3.5'
@@ -22,8 +23,6 @@ buildscript {
2223
}
2324
}
2425

25-
//apply plugin: 'com.palantir.jacoco-full-report'
26-
apply plugin: 'com.github.kt3k.coveralls'
2726

2827
configure(allprojects) { project ->
2928

@@ -35,6 +34,7 @@ configure(allprojects) { project ->
3534
mavenCentral()
3635
jcenter()
3736
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
37+
maven { url 'https://plugins.gradle.org/m2/'}
3838
mavenLocal()
3939
}
4040
}
@@ -52,7 +52,6 @@ allprojects {
5252
maven { url "https://repo.maven.apache.org/maven2" }
5353
maven { url "https://cloudant.github.io/cloudant-sync-eap/repository" }
5454
maven { url "https://s3.amazonaws.com/repo.commonsware.com" }
55-
//maven { url "https://dl.bintray.com/ibm-watson-health/ibm-fhir-server-releases" }
5655
google()
5756
jcenter()
5857
}
@@ -95,18 +94,6 @@ subprojects {
9594
}
9695
}
9796

98-
/*task clean(type: Delete) {
99-
delete rootProject.buildDir
100-
}*/
101-
102-
//jacocoFull {
103-
// excludeProject ":sample", ":opensrp-client-anc"
104-
//}
105-
106-
coveralls {
107-
jacocoReportPath = "${buildDir}/reports/jacoco/jacocoFullReport/jacocoFullReport.xml"
108-
sourceDirs += ["opensrp-anc/src/main/java/", "reference-app/src/main/java"]
109-
}
11097
apply plugin: 'io.codearte.nexus-staging'
11198

11299
def isReleaseBuild() {

opensrp-anc/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
}
66
dependencies {
77
classpath 'com.android.tools.build:gradle:4.1.3'
8-
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.3'
8+
classpath 'gradle.plugin.org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.10.2'
99
classpath 'com.google.gms:google-services:4.3.10'
1010
}
1111
configurations.all {
@@ -326,9 +326,9 @@ task javadoc(type: Javadoc) {
326326
classpath += configurations.compile
327327
}
328328

329-
def jacocoReportPath,sourceDirs
329+
def jacocoReportPath, sourceDirs
330330
task coveralls {
331-
jacocoReportPath = "${buildDir}/reports/jacoco/jacocoTestReport/merged.xml"
331+
jacocoReportPath = "${buildDir}/reports/jacoco/jacocoRootReport/merged.xml"
332332
sourceDirs = ["$project.projectDir/src/main/java"]
333333
}
334334

0 commit comments

Comments
 (0)