From 9635ff3d6554f3a089437582d3f288030326c5bf Mon Sep 17 00:00:00 2001 From: Loyisa Date: Sat, 12 Oct 2024 22:54:37 +0800 Subject: [PATCH] 1.0.1 --- build.gradle.kts | 8 +++++++- src/main/resources/plugin.yml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 6e642a7..c7c0f1d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,9 +1,11 @@ +import org.apache.tools.ant.filters.ReplaceTokens + plugins { `java-library` } group = "dev.diona" -version = "1.0.0" +version = "1.0.1" repositories { maven("https://hub.spigotmc.org/nexus/content/groups/public/") @@ -23,4 +25,8 @@ dependencies { tasks.withType { options.encoding = "UTF-8" targetCompatibility = JavaVersion.VERSION_17.toString() +} + +tasks.processResources { + expand("version" to project.version) } \ No newline at end of file diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index bd522db..326f743 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ name: ViaLegacyAPI main: dev.diona.vialegacyapi.ViaLegacyAPI authors: [ _MylesC, Loyisa ] -version: 1.0.0 +version: ${version} api-version: 1.13 depend: [ ViaVersion ] \ No newline at end of file