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 fancylibVersion=37
fancysitulaVersion=0.0.13 fancysitulaVersion=0.0.13
jdbVersion=1.0.2
plugintestsVersion=1.0.0 plugintestsVersion=1.0.0
org.gradle.parallel=false org.gradle.parallel=false
org.gradle.caching=true 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 { plugins {
id("java") id("java")
id("maven-publish") id("maven-publish")
id("com.github.johnrengelman.shadow") id("com.gradleup.shadow")
} }
group = "de.oliver" group = "de.oliver"
version = findProperty("jdbVersion") as String version = getJDBVersion()
description = "Library for storing JSON data locally" description = "Library for storing JSON data locally"
java { java {
@@ -55,7 +55,7 @@ tasks {
create<MavenPublication>("maven") { create<MavenPublication>("maven") {
groupId = "de.oliver" groupId = "de.oliver"
artifactId = "JDB" artifactId = "JDB"
version = findProperty("jdbVersion") as String version = getJDBVersion()
from(project.components["java"]) from(project.components["java"])
} }
} }
@@ -85,3 +85,7 @@ tasks {
useJUnitPlatform() useJUnitPlatform()
} }
} }
fun getJDBVersion(): String {
return file("VERSION").readText()
}