From 5dbc9ff657eef11636fdec891e5bf6807518caf8 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Sun, 18 Feb 2024 18:59:11 +0800 Subject: [PATCH] Update build script --- lsplant/build.gradle.kts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lsplant/build.gradle.kts b/lsplant/build.gradle.kts index e671489ab..435f553f2 100644 --- a/lsplant/build.gradle.kts +++ b/lsplant/build.gradle.kts @@ -1,5 +1,3 @@ -import java.nio.file.Paths - plugins { alias(libs.plugins.agp.lib) alias(libs.plugins.lsplugin.jgit) @@ -96,7 +94,7 @@ cmaker { arguments += "-DLSPLANT_STANDALONE=ON" } } - arguments += "-DDEBUG_SYMBOLS_PATH=${project.buildDir.absolutePath}/symbols/${it.name}" + arguments += "-DDEBUG_SYMBOLS_PATH=${project.layout.buildDirectory.file("symbols/${it.name}").get().asFile.absolutePath}" } } @@ -105,14 +103,14 @@ dependencies { } val symbolsReleaseTask = tasks.register("generateReleaseSymbolsJar") { - from("${project.buildDir.absolutePath}/symbols/release") + from(project.layout.buildDirectory.file("symbols/release")) exclude("**/dex_builder") archiveClassifier.set("symbols") archiveBaseName.set("release") } val symbolsStandaloneTask = tasks.register("generateStandaloneSymbolsJar") { - from("${project.buildDir.absolutePath}/symbols/standalone") + from(project.layout.buildDirectory.file("symbols/standalone")) exclude("**/dex_builder") archiveClassifier.set("symbols") archiveBaseName.set("standalone")