From 8510f2df1fda64e4d2d92dbb3137b2967f262331 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 7 Nov 2023 20:03:35 +0000 Subject: [PATCH] Fix Maven local repository location (post Gradle 8.4 update) (#717) Signed-off-by: Andriy Redko (cherry picked from commit 87613f3a73067323de09c22312342622640c08e5) Signed-off-by: github-actions[bot] --- java-client/build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" } }