Skip to content

Commit

Permalink
Update jacoco to latest release v0.8.0 (getodk#1993)
Browse files Browse the repository at this point in the history
  • Loading branch information
shobhitagarwal1612 authored and lognaturel committed Mar 9, 2018
1 parent f92b55e commit 188baa7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
9 changes: 1 addition & 8 deletions build.gradle
Expand Up @@ -7,14 +7,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.google.gms:google-services:3.0.0'
classpath 'org.jacoco:org.jacoco.core:0.7.9'
}
configurations.all {
resolutionStrategy {
// use old jacoco so Robolectric test coverage is included in reports
// track https://github.com/paveldudka/JacocoEverywhere/issues/14 for a less hacky solution
force 'org.jacoco:org.jacoco.core:0.7.2.201409121644'
}
classpath 'org.jacoco:org.jacoco.core:0.8.0'
}
}

Expand Down
6 changes: 0 additions & 6 deletions collect_app/build.gradle
Expand Up @@ -154,12 +154,6 @@ android {
unitTests {
includeAndroidResources = true
returnDefaultValues = true

all {
jacoco {
includeNoLocationClasses = true
}
}
}
}
}
Expand Down
15 changes: 12 additions & 3 deletions config/quality.gradle
Expand Up @@ -20,7 +20,12 @@ apply plugin: 'jacoco'
*/

jacoco {
toolVersion '0.7.4+'
// https://bintray.com/bintray/jcenter/org.jacoco:org.jacoco.core
toolVersion = '0.8.0'
}

tasks.withType(Test) {
jacoco.includeNoLocationClasses = true
}

// Add checkstyle, findbugs, pmd and lint to the check task.
Expand Down Expand Up @@ -115,8 +120,12 @@ task jacocoTestReport(type: JacocoReport, dependsOn: 'testDebugUnitTest') {
sourceDirectories = files(coverageSourceDirs)
classDirectories = fileTree(
dir: "${buildDir}/intermediates/classes/debug",
excludes: ['**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*',
'**/*Test*.*', 'android/**/*.*',
excludes: ['**/R.class',
'**/R$*.class',
'**/BuildConfig.*',
'**/Manifest*.*',
'**/*Test*.*',
'android/**/*.*',
'**/*_MembersInjector.class',
'**/Dagger*Component.class',
'**/Dagger*Component$Builder.class',
Expand Down

0 comments on commit 188baa7

Please sign in to comment.