mirror of
https://github.com/ultrasonic/ultrasonic
synced 2025-01-01 03:27:39 +01:00
ad52e3ad95
This allow other modules to depend on them. Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
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
|
|
}
|
|
}
|