File tree Expand file tree Collapse file tree 3 files changed +20
-89
lines changed
Expand file tree Collapse file tree 3 files changed +20
-89
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ allprojects {
22 version = " 1.0.0"
33 apply plugin : " java-library"
44}
5- apply from : " config.gradle"
65
76subprojects {
87 apply plugin : " jacoco"
@@ -89,3 +88,7 @@ gradle.buildFinished {
8988 }
9089 }
9190}
91+
92+ ext {
93+ ext. jacocoVersion = " 0.8.8"
94+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -22,7 +22,22 @@ jacoco {
2222}
2323
2424tasks. withType(Test ) {
25- jacoco. excludes = rootProject. ext. jacocoNeedFilterClasses
25+ jacoco {
26+ def excludesOut = [];
27+ fileTree(project(' :framework' ). buildDir). files. collect { file ->
28+ file. absolutePath. replace(project. buildDir. absolutePath + ' /' , ' ' )
29+ }. findAll { it. endsWith(' .class' ) }. forEach {
30+ if (it. indexOf(" /test/" )== -1
31+ && it. indexOf(" classes/" )!= -1
32+ && it. indexOf(" classes-instrumented/" )== -1
33+ ) {
34+ def start = it. indexOf(" org" );
35+ def end = it. indexOf(" \$ " ) == -1 ? it. indexOf(" ." ) : it. indexOf(" \$ " )
36+ excludesOut. add(it. substring(start, end) + " *" )
37+ }
38+ }
39+ excludes = excludesOut
40+ }
2641}
2742
2843configurations {
You can’t perform that action at this time.
0 commit comments