Skip to content

Commit e07b091

Browse files
committed
chore(test-plugin): improvement processResources
1 parent 4f49436 commit e07b091

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

test-plugin/build.gradle.kts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,15 @@ tasks {
2828
}
2929

3030
processResources {
31-
inputs.property("mcversion", mcVersion)
31+
duplicatesStrategy = DuplicatesStrategy.INCLUDE
32+
val props = mapOf(
33+
"version" to project.version,
34+
"mcversion" to mcVersion
35+
)
36+
inputs.properties(props)
37+
filteringCharset = "UTF-8"
3238
filesMatching("paper-plugin.yml") {
33-
expand("mcversion" to mcVersion)
39+
expand(props)
3440
}
3541
}
3642

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: TestPlugin
2-
version: 1.0.0
2+
version: ${version}
33
main: dev.mrdoc.minecraft.test.Core
44
bootstrapper: dev.mrdoc.minecraft.test.CoreBootstrap
55
api-version: ${mcversion}

0 commit comments

Comments
 (0)