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