Also exclude test coverage from instrumentation

This commit is contained in:
Tyler Benson 2019-01-04 11:08:21 -08:00
parent 6d7415fed2
commit c18b299606
2 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,6 @@
apply from: "${rootDir}/gradle/java.gradle"
apply from: "${rootDir}/gradle/test-with-scala.gradle"
excludedClassesConverage += ['*']
dependencies {
testCompile project(':dd-trace-api')
testCompile project(':dd-trace-ot')

View File

@ -4,7 +4,9 @@ apply plugin: 'groovy'
apply from: "$rootDir/gradle/checkstyle.gradle"
apply from: "$rootDir/gradle/codenarc.gradle"
def applyCodeCoverage = !project.plugins.hasPlugin('com.github.johnrengelman.shadow')
def applyCodeCoverage = !(project.plugins.hasPlugin('com.github.johnrengelman.shadow')
|| project.path.startsWith(":dd-java-agent:instrumentation:"))
if (applyCodeCoverage) {
apply from: "$rootDir/gradle/jacoco.gradle"
}