Trying to fix CI error

This commit is contained in:
Nite 2020-08-24 13:59:40 +02:00
parent 1c83f5c67d
commit a22984566a
No known key found for this signature in database
GPG Key ID: 1D1AD59B1C6386C1
3 changed files with 15 additions and 3 deletions

View File

@ -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.*']
}

View File

@ -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
}
}

View File

@ -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
}