diff --git a/contentstack/build.gradle b/contentstack/build.gradle index 8b2c3e67..b85db6f3 100755 --- a/contentstack/build.gradle +++ b/contentstack/build.gradle @@ -41,20 +41,30 @@ mavenPublishing { } -tasks.register('jacocoTestReport', JacocoReport) { - dependsOn['testDebugUnitTest', 'createDebugCoverageReport'] - reports { - html.enabled = true - } - afterEvaluate { - classDirectories.setFrom(files(classDirectories.files.collect { - fileTree(dir: it, exclude: '**com/contentstack/okhttp**') - fileTree(dir: it, exclude: '**com/contentstack/okio**') - fileTree(dir: it, exclude: '**com/contentstack/txtmark**') - })) +//tasks.register('jacocoTestReport', JacocoReport) { +// dependsOn['testDebugUnitTest', 'createDebugCoverageReport'] +// reports { +// html.enabled = true +// } +// afterEvaluate { +// classDirectories.setFrom(files(classDirectories.files.collect { +// fileTree(dir: it, exclude: '**com/contentstack/okhttp**') +// fileTree(dir: it, exclude: '**com/contentstack/okio**') +// fileTree(dir: it, exclude: '**com/contentstack/txtmark**') +// })) +// } +//} + +junitJacoco { + jacocoVersion = '0.8.4' // type String + includeInstrumentationCoverageInMergedReport = true // type boolean + tasks.withType(Test) { + jacoco.includeNoLocationClasses = true + jacoco.excludes = ['jdk.internal.*'] } } + android { //namespace "com.contentstack.sdk" packagingOptions {