jdb: Add VERSION file

This commit is contained in:
Oliver
2025-11-20 11:20:34 +01:00
parent ec842f7287
commit b2416a14b2
3 changed files with 8 additions and 4 deletions

View File

@@ -1,6 +1,5 @@
fancylibVersion=37
fancysitulaVersion=0.0.13
jdbVersion=1.0.2
plugintestsVersion=1.0.0
org.gradle.parallel=false
org.gradle.caching=true

1
libraries/jdb/VERSION Normal file
View File

@@ -0,0 +1 @@
1.0.2

View File

@@ -1,11 +1,11 @@
plugins {
id("java")
id("maven-publish")
id("com.github.johnrengelman.shadow")
id("com.gradleup.shadow")
}
group = "de.oliver"
version = findProperty("jdbVersion") as String
version = getJDBVersion()
description = "Library for storing JSON data locally"
java {
@@ -55,7 +55,7 @@ tasks {
create<MavenPublication>("maven") {
groupId = "de.oliver"
artifactId = "JDB"
version = findProperty("jdbVersion") as String
version = getJDBVersion()
from(project.components["java"])
}
}
@@ -85,3 +85,7 @@ tasks {
useJUnitPlatform()
}
}
fun getJDBVersion(): String {
return file("VERSION").readText()
}