From b39a65b1ff7f037f3aed1823e97b720f6472a97f Mon Sep 17 00:00:00 2001 From: Slqmy <90862990+Slqmy@users.noreply.github.com> Date: Tue, 6 Aug 2024 17:21:01 +0100 Subject: [PATCH] Add `buildDirectoryString` variable --- build.gradle.kts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 60f926f7..0456af27 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -50,6 +50,8 @@ val projectNameString = rootProject.name group = topLevelDomain + groupStringSeparator + mainProjectAuthor.lowercase() + groupStringSeparator + snakecase(projectNameString) version = "1.0.0-SNAPSHOT" +val buildDirectoryString = buildDir.toString() + val projectGroupString = group.toString() val projectVersionString = version.toString() @@ -101,7 +103,7 @@ publishing { version = projectVersionString fun artifactPath(classifier: String): String { - return "$buildDir/libs/" + projectNameString + "-" + projectVersionString + "-" + classifier + ".jar" + return buildDirectoryString + "/libs/" + projectNameString + "-" + projectVersionString + "-" + classifier + ".jar" } val devAllClassifier = "dev-all"