fancynpcs: refactor version handling to read from VERSION file

This commit is contained in:
Oliver
2025-03-29 22:08:05 +01:00
parent a6710ea03a
commit 3be3f30135
2 changed files with 15 additions and 8 deletions

View File

@@ -48,7 +48,7 @@ tasks {
create<MavenPublication>("maven") {
groupId = "de.oliver"
artifactId = "FancyNpcs"
version = project.version.toString()
version = getFNVersion()
from(project.components["java"])
}
}
@@ -68,4 +68,8 @@ tasks {
options.release = 17
}
}
fun getFNVersion(): String {
return file("../VERSION").readText()
}