From 930ae728d0769d649fc89b2998d20f2d6abd70ec Mon Sep 17 00:00:00 2001 From: trivernis Date: Sun, 7 Mar 2021 10:40:56 +0100 Subject: [PATCH] Add plugin version placeholder and bump version Signed-off-by: trivernis --- build.gradle | 12 +++++++++++- gradle.properties | 3 ++- src/main/resources/plugin.yml | 2 +- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 11343e2..8a63fda 100644 --- a/build.gradle +++ b/build.gradle @@ -23,7 +23,7 @@ idea { group "net.trivernis" -version "1.3.3" +version PLUGIN_VERSION sourceCompatibility = 1.8 @@ -73,6 +73,16 @@ jar { from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } +processResources { + with copySpec { + from 'src/main/resources/' + include '**/*' + filter { String line -> + line.replace('PLUGIN_VERSION', PLUGIN_VERSION) + } + } +} + compileKotlin { kotlinOptions { jvmTarget = "1.8" diff --git a/gradle.properties b/gradle.properties index 29e08e8..b1aea94 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1,2 @@ -kotlin.code.style=official \ No newline at end of file +kotlin.code.style=official +PLUGIN_VERSION=1.3.4 \ No newline at end of file diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 3275d5c..03f79bc 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ main: net.trivernis.chunkmaster.Chunkmaster name: Chunkmaster -version: '1.3.3' +version: PLUGIN_VERSION description: Automated world pregeneration. author: Trivernis website: trivernis.net