39 lines
645 B
Groovy
39 lines
645 B
Groovy
|
apply plugin: 'java-library'
|
||
|
apply plugin: 'kotlin'
|
||
|
apply plugin: 'jacoco'
|
||
|
apply from: '../gradle_scripts/code_quality.gradle'
|
||
|
|
||
|
dependencies {
|
||
|
api other.kotlinStdlib
|
||
|
api other.semver
|
||
|
}
|
||
|
|
||
|
jacoco {
|
||
|
toolVersion(versions.jacoco)
|
||
|
}
|
||
|
|
||
|
ext {
|
||
|
jacocoExclude = []
|
||
|
}
|
||
|
|
||
|
jacocoTestReport {
|
||
|
reports {
|
||
|
html.enabled true
|
||
|
csv.enabled false
|
||
|
xml.enabled true
|
||
|
}
|
||
|
|
||
|
afterEvaluate {
|
||
|
classDirectories = files(classDirectories.files.collect {
|
||
|
fileTree(dir: it, excludes: jacocoExclude)
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
|
||
|
test.finalizedBy jacocoTestReport
|
||
|
test {
|
||
|
jacoco {
|
||
|
excludes += jacocoExclude
|
||
|
}
|
||
|
}
|