Skip to content

Commit

Permalink
Tu dong cap nhat version trong plugin.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
amadeusmz committed May 26, 2024
1 parent 636abb4 commit 1f95eaf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions minevnlib-bukkit/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
2 changes: 1 addition & 1 deletion minevnlib-bukkit/src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -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]

0 comments on commit 1f95eaf

Please sign in to comment.