Skip to content

Commit 51537b2

Browse files
committed
🚨 修复IDEA ProcessResources警告
1 parent cd37bd5 commit 51537b2

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,11 @@ tasks {
117117
}
118118
withType<ProcessResources>().configureEach {
119119
exclude("META-INF")
120-
expand("version" to loaderVersion)
120+
filter<ReplaceTokens>(
121+
"tokens" to mapOf(
122+
"version" to loaderVersion
123+
)
124+
)
121125
}
122126
val buildPlugin by registering(com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar::class) {
123127
group = "plugin"

loader/bukkit/res/plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: ScriptAgent
22
main: cf.wayzer.scriptAgent.bukkit.Main
3-
version: "${version}"
3+
version: "@version@"
44
author: Way__Zer
55
api-version: 1.21
66
folia-supported: true

loader/mindustry/res/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"author": "WayZer",
44
"main": "cf.wayzer.scriptAgent.mindustry.Loader",
55
"description": "More commands and features.",
6-
"version": "${version}",
6+
"version": "@version@",
77
"minGameVersion": 147
88
}

0 commit comments

Comments
 (0)