Skip to content

Commit

Permalink
Add buildDirectoryString variable
Browse files Browse the repository at this point in the history
  • Loading branch information
esotericenderman committed Aug 6, 2024
1 parent fe2fb3d commit b39a65b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit b39a65b

Please sign in to comment.