mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
fancynpcs: refactor version handling to read from VERSION file
This commit is contained in:
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user