Skip to content

Commit e47f606

Browse files
committed
removed buildDir, moved xml output location to new method
1 parent 4da9008 commit e47f606

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ checkstyle {
111111
pmd {
112112
toolVersion = "7.16.0"
113113
sourceSets = [sourceSets.main]
114-
reportsDir = file("$project.buildDir/reports/pmd")
114+
reportsDir = layout.buildDirectory.dir("reports/pmd").get().asFile
115115
// https://github.com/pmd/pmd/issues/876
116116
ruleSets = []
117117
ruleSetFiles = files("config/pmd/ruleset.xml")
@@ -130,7 +130,7 @@ jacocoTestReport {
130130
reports {
131131
xml.required = true
132132
csv.required = false
133-
xml.destination file("${buildDir}/reports/jacoco/test/jacocoTestReport.xml")
133+
xml.outputLocation.set(layout.buildDirectory.file("reports/jacoco/test/jacocoTestReport.xml"))
134134
}
135135
}
136136

0 commit comments

Comments
 (0)