diff --git a/minevnlib-bukkit/build.gradle.kts b/minevnlib-bukkit/build.gradle.kts index 71368ed..a74436a 100644 --- a/minevnlib-bukkit/build.gradle.kts +++ b/minevnlib-bukkit/build.gradle.kts @@ -7,3 +7,13 @@ dependencies { compileOnly("com.destroystokyo.paper:paper-api:1.13.2-R0.1-SNAPSHOT") implementation("com.github.cryptomorin:XSeries:10.0.0") { isTransitive = false } } + +tasks.processResources { + outputs.upToDateWhen { false } + filesMatching(listOf("**/plugin.yml")) { + expand(mapOf("version" to project.version.toString())) + println("$name: set version to ${project.version}") + } + duplicatesStrategy = DuplicatesStrategy.INCLUDE + filteringCharset = Charsets.UTF_8.name() +} diff --git a/minevnlib-bukkit/src/main/resources/plugin.yml b/minevnlib-bukkit/src/main/resources/plugin.yml index f1ffbc7..4aa4393 100644 --- a/minevnlib-bukkit/src/main/resources/plugin.yml +++ b/minevnlib-bukkit/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ name: MineVNLib author: MineVN main: net.minevn.libs.bukkit.MineVNLib -version: 1.0.6 +version: '${version}' api-version: 1.13 softdepend: [eco]