fancyvisuals: update versioning and refactor version retrieval method

This commit is contained in:
Oliver
2025-03-15 19:51:36 +01:00
parent 04a861562e
commit 9f8ac1d79f
3 changed files with 7 additions and 3 deletions

View File

@@ -1,4 +1,3 @@
fancyvisualsVersion=0.0.1
fancylibVersion=36 fancylibVersion=36
fancysitulaVersion=0.0.13 fancysitulaVersion=0.0.13
jdbVersion=1.0.0 jdbVersion=1.0.0

View File

@@ -0,0 +1 @@
0.0.1

View File

@@ -12,7 +12,7 @@ runPaper.folia.registerTask()
allprojects { allprojects {
group = "de.oliver" group = "de.oliver"
version = findProperty("fancyvisualsVersion") as String version = getFVVersion()
description = "Simple, lightweight and fast visual plugin using packets" description = "Simple, lightweight and fast visual plugin using packets"
repositories { repositories {
@@ -51,7 +51,7 @@ paper {
bootstrapper = "de.oliver.fancyvisuals.loaders.FancyVisualsBootstrapper" bootstrapper = "de.oliver.fancyvisuals.loaders.FancyVisualsBootstrapper"
loader = "de.oliver.fancyvisuals.loaders.FancyVisualsLoader" loader = "de.oliver.fancyvisuals.loaders.FancyVisualsLoader"
foliaSupported = true foliaSupported = true
version = findProperty("fancyvisualsVersion") as String version = getFVVersion()
description = "Simple, lightweight and fast visuals plugin using packets" description = "Simple, lightweight and fast visuals plugin using packets"
apiVersion = "1.19" apiVersion = "1.19"
serverDependencies { serverDependencies {
@@ -129,3 +129,7 @@ java {
fun getCurrentCommitHash(): String { fun getCurrentCommitHash(): String {
return "" return ""
} }
fun getFVVersion(): String {
return file("VERSION").readText()
}