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