mirror of
https://github.com/sparrowwallet/drongo.git
synced 2025-02-10 14:19:04 +00:00
Enable JaCoCo code coverage reports
This commit is contained in:
parent
4341973acd
commit
dd245eb182
1 changed files with 13 additions and 0 deletions
13
build.gradle
13
build.gradle
|
@ -10,6 +10,7 @@ plugins {
|
||||||
id 'java-library'
|
id 'java-library'
|
||||||
id 'extra-java-module-info'
|
id 'extra-java-module-info'
|
||||||
id 'com.github.johnrengelman.shadow' version '5.2.0'
|
id 'com.github.johnrengelman.shadow' version '5.2.0'
|
||||||
|
id 'jacoco'
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(AbstractArchiveTask) {
|
tasks.withType(AbstractArchiveTask) {
|
||||||
|
@ -92,6 +93,18 @@ shadowJar {
|
||||||
classifier = 'all'
|
classifier = 'all'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test {
|
||||||
|
finalizedBy jacocoTestReport
|
||||||
|
}
|
||||||
|
|
||||||
|
jacocoTestReport {
|
||||||
|
dependsOn test
|
||||||
|
}
|
||||||
|
|
||||||
|
jacoco {
|
||||||
|
toolVersion = '0.8.10'
|
||||||
|
}
|
||||||
|
|
||||||
extraJavaModuleInfo {
|
extraJavaModuleInfo {
|
||||||
module('logback-core-1.2.8.jar', 'logback.core', '1.2.8') {
|
module('logback-core-1.2.8.jar', 'logback.core', '1.2.8') {
|
||||||
exports('ch.qos.logback.core')
|
exports('ch.qos.logback.core')
|
||||||
|
|
Loading…
Reference in a new issue