add proper versioning
This commit is contained in:
parent
08ad0204d3
commit
13e68f6e0e
3 changed files with 18 additions and 8 deletions
23
build.gradle
23
build.gradle
|
@ -2,6 +2,9 @@ plugins {
|
|||
id 'java'
|
||||
}
|
||||
|
||||
group = "dev.ivycollective"
|
||||
version = project.version
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven {
|
||||
|
@ -14,12 +17,18 @@ dependencies {
|
|||
compileOnly "io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT"
|
||||
}
|
||||
|
||||
def targetJavaVersion = 21
|
||||
java {
|
||||
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
|
||||
sourceCompatibility = javaVersion
|
||||
targetCompatibility = javaVersion
|
||||
if (JavaVersion.current() < javaVersion) {
|
||||
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
|
||||
sourceCompatibility = JavaVersion.VERSION_21
|
||||
targetCompatibility = JavaVersion.VERSION_21
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(21)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
processResources {
|
||||
filesMatching("plugin.yml") {
|
||||
expand(
|
||||
"version": project.version
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
1
gradle.properties
Normal file
1
gradle.properties
Normal file
|
@ -0,0 +1 @@
|
|||
version=STAGING
|
|
@ -1,5 +1,5 @@
|
|||
name: cloudflare-tunnels-plugin
|
||||
version: STAGING
|
||||
version: "${version}"
|
||||
main: dev.ivycollective.cloudflaretunnelsplugin.CloudflareTunnelsPlugin
|
||||
description: Run a Cloudflare Tunnels daemon
|
||||
authors: [ ivycollective ]
|
||||
|
|
Loading…
Reference in a new issue