From 2cb44454b0371326d9d2f8f7288c828e868c30e5 Mon Sep 17 00:00:00 2001 From: TylerS1066 Date: Wed, 3 Jul 2024 19:04:55 -0500 Subject: [PATCH] Update build --- build.gradle.kts | 12 ++++++++++++ src/main/resources/plugin.yml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 18c4c74..752ae7f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -41,3 +41,15 @@ version = "3.0.0_beta-2" description = "APTurrets" java.toolchain.languageVersion = JavaLanguageVersion.of(17) + +tasks.jar { + archiveClassifier.set("") + archiveVersion.set("") +} + +tasks.processResources { + from(rootProject.file("LICENSE.md")) + filesMatching("*.yml") { + expand(mapOf("projectVersion" to project.version)) + } +} diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index b6d81f4..21671e2 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ main: com.snowleopard1863.APTurrets.TurretsMain -version: ${project.version} +version: ${projectVersion} name: APTurrets api-version: 1.18 authors: [TylerS1066, Snowleopard1863, cccm5, MrUniverse_]