Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-14 18:40:10 +01:00
[ci skip] Populate test plugin api-version from mcVersion
closes #7216
Dieser Commit ist enthalten in:
Ursprung
1931bb53bf
Commit
aa8a835912
@ -10,8 +10,14 @@ dependencies {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.processResources {
|
tasks.processResources {
|
||||||
inputs.property("version", project.version)
|
val apiVersion = rootProject.providers.gradleProperty("mcVersion").forUseAtConfigurationTime().get()
|
||||||
|
.split(".", "-").take(2).joinToString(".")
|
||||||
|
val props = mapOf(
|
||||||
|
"version" to project.version,
|
||||||
|
"apiversion" to apiVersion,
|
||||||
|
)
|
||||||
|
inputs.properties(props)
|
||||||
filesMatching("plugin.yml") {
|
filesMatching("plugin.yml") {
|
||||||
expand("version" to project.version)
|
expand(props)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,5 +3,5 @@ version: ${version}
|
|||||||
main: io.papermc.paper.testplugin.TestPlugin
|
main: io.papermc.paper.testplugin.TestPlugin
|
||||||
description: Paper Test Plugin
|
description: Paper Test Plugin
|
||||||
author: PaperMC
|
author: PaperMC
|
||||||
api-version: 1.17
|
api-version: ${apiversion}
|
||||||
load: STARTUP
|
load: STARTUP
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren