diff --git a/java-client/build.gradle.kts b/java-client/build.gradle.kts index 8f85f84a8d..fc0a544b92 100644 --- a/java-client/build.gradle.kts +++ b/java-client/build.gradle.kts @@ -204,7 +204,7 @@ dependencies { } licenseReport { - renderers = arrayOf(SpdxReporter(File(rootProject.buildDir, "release/dependencies.csv"))) + renderers = arrayOf(SpdxReporter(rootProject.layout.buildDirectory.file("release/dependencies.csv").get().getAsFile())) excludeGroups = arrayOf("org.opensearch.client") } @@ -292,7 +292,7 @@ publishing { } } } - maven("${rootProject.buildDir}/repository") { + maven(rootProject.layout.buildDirectory.dir("repository")) { name = "localRepo" } }