Merge pull request #1209 from DataDog/mar-kolya/fix-jacoco-settings

Fix the way jacoco defaults are set
This commit is contained in:
Nikolay Martynov 2020-02-11 13:03:33 -05:00 committed by GitHub
commit 25534b2641
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -13,15 +13,15 @@ jacocoTestReport {
}
}
if (!project.hasProperty("excludedClassesCoverage")) {
if (!project.ext.hasProperty("excludedClassesCoverage")) {
project.ext.excludedClassesCoverage = []
}
if (!project.hasProperty("excludedClassesBranchCoverage")) {
if (!project.ext.hasProperty("excludedClassesBranchCoverage")) {
project.ext.excludedClassesBranchCoverage = []
}
if (!project.hasProperty("excludedClassesInstructionCoverage")) {
if (!project.ext.hasProperty("excludedClassesInstructionCoverage")) {
project.ext.excludedClassesInstructionCoverage = []
}