Trying to fix CI error
This commit is contained in:
parent
1c83f5c67d
commit
a22984566a
|
@ -52,6 +52,7 @@ targetCompatibility = JavaVersion.VERSION_1_8
|
|||
tasks.withType(Test) {
|
||||
useJUnitPlatform()
|
||||
jacoco {
|
||||
includeNoLocationClasses = true
|
||||
excludes += jacocoExclude
|
||||
}
|
||||
}
|
||||
|
@ -68,6 +69,6 @@ jacoco {
|
|||
}
|
||||
|
||||
ext {
|
||||
jacocoExclude = []
|
||||
jacocoExclude = ['jdk.internal.*']
|
||||
}
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ jacoco {
|
|||
|
||||
ext {
|
||||
// override it in the module
|
||||
jacocoExclude = []
|
||||
jacocoExclude = ['jdk.internal.*']
|
||||
}
|
||||
|
||||
jacocoTestReport {
|
||||
|
@ -51,6 +51,7 @@ test.finalizedBy jacocoTestReport
|
|||
test {
|
||||
jacoco {
|
||||
excludes += jacocoExclude
|
||||
includeNoLocationClasses = true
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -99,6 +99,16 @@ ext {
|
|||
'**/R$*.class',
|
||||
'**/R.class',
|
||||
'**/BuildConfig.class',
|
||||
'**/di/**'
|
||||
'**/di/**',
|
||||
'jdk.internal.*'
|
||||
]
|
||||
}
|
||||
|
||||
jacoco {
|
||||
toolVersion(versions.jacoco)
|
||||
}
|
||||
|
||||
tasks.withType(Test) {
|
||||
jacoco.includeNoLocationClasses = true
|
||||
jacoco.excludes += jacocoExclude
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue