Skip to content

Commit 1968e73

Browse files
authored
Replace deprecated buildDir (#4771)
1 parent 47e2614 commit 1968e73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -305,16 +305,16 @@ subprojects {
305305
}
306306

307307
src "${rootUrl}io/micrometer/${project.name}/${compatibleVersion}/${project.name}-${compatibleVersion}.jar"
308-
dest "${buildDir}/baselineLibs/${project.name}-${compatibleVersion}.jar"
308+
dest layout.buildDirectory.file("baselineLibs/${project.name}-${compatibleVersion}.jar")
309309
}
310310

311311
task japicmp(type: me.champeau.gradle.japicmp.JapicmpTask) {
312-
oldClasspath.from(files("${buildDir}/baselineLibs/${project.name}-${compatibleVersion}.jar"))
312+
oldClasspath.from(layout.buildDirectory.file("baselineLibs/${project.name}-${compatibleVersion}.jar"))
313313
newClasspath.from(files(jar.archiveFile, project(":${project.name}").jar))
314314
onlyBinaryIncompatibleModified = true
315315
failOnModification = true
316316
failOnSourceIncompatibility = true
317-
txtOutputFile = file("${project.buildDir}/reports/japi.txt")
317+
txtOutputFile = project.layout.buildDirectory.file("reports/japi.txt")
318318
ignoreMissingClasses = true
319319
includeSynthetic = true
320320

0 commit comments

Comments
 (0)