fancyholograms: update versioning and refactor version retrieval method

This commit is contained in:
Oliver
2025-03-15 19:49:44 +01:00
parent b648e86ace
commit 04a861562e
4 changed files with 16 additions and 9 deletions

View File

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