Skip to content

Commit

Permalink
Update coveralls configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza-vd committed Jul 4, 2022
1 parent 0b4aac1 commit f98d2f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
19 changes: 3 additions & 16 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ buildscript {
jcenter()
maven { url 'https://maven.fabric.io/public' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.0'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.3'
classpath 'gradle.plugin.org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.10.2'
classpath 'com.palantir:jacoco-coverage:0.4.0'
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.11.0"
classpath 'com.google.gms:google-services:4.3.5'
Expand All @@ -22,8 +23,6 @@ buildscript {
}
}

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

configure(allprojects) { project ->

Expand All @@ -35,6 +34,7 @@ configure(allprojects) { project ->
mavenCentral()
jcenter()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://plugins.gradle.org/m2/'}
mavenLocal()
}
}
Expand All @@ -52,7 +52,6 @@ allprojects {
maven { url "https://repo.maven.apache.org/maven2" }
maven { url "https://cloudant.github.io/cloudant-sync-eap/repository" }
maven { url "https://s3.amazonaws.com/repo.commonsware.com" }
//maven { url "https://dl.bintray.com/ibm-watson-health/ibm-fhir-server-releases" }
google()
jcenter()
}
Expand Down Expand Up @@ -95,18 +94,6 @@ subprojects {
}
}

/*task clean(type: Delete) {
delete rootProject.buildDir
}*/

//jacocoFull {
// excludeProject ":sample", ":opensrp-client-anc"
//}

coveralls {
jacocoReportPath = "${buildDir}/reports/jacoco/jacocoFullReport/jacocoFullReport.xml"
sourceDirs += ["opensrp-anc/src/main/java/", "reference-app/src/main/java"]
}
apply plugin: 'io.codearte.nexus-staging'

def isReleaseBuild() {
Expand Down
6 changes: 3 additions & 3 deletions opensrp-anc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.3'
classpath 'gradle.plugin.org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.10.2'
classpath 'com.google.gms:google-services:4.3.10'
}
configurations.all {
Expand Down Expand Up @@ -326,9 +326,9 @@ task javadoc(type: Javadoc) {
classpath += configurations.compile
}

def jacocoReportPath,sourceDirs
def jacocoReportPath, sourceDirs
task coveralls {
jacocoReportPath = "${buildDir}/reports/jacoco/jacocoTestReport/merged.xml"
jacocoReportPath = "${buildDir}/reports/jacoco/jacocoRootReport/merged.xml"
sourceDirs = ["$project.projectDir/src/main/java"]
}

Expand Down

0 comments on commit f98d2f8

Please sign in to comment.