mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 06:50:12 +01:00
parent
22d46134e3
commit
3d1ddee8a7
2 changed files with 9 additions and 3 deletions
|
@ -10,8 +10,14 @@ dependencies {
|
|||
}
|
||||
|
||||
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") {
|
||||
expand("version" to project.version)
|
||||
expand(props)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,5 +3,5 @@ version: ${version}
|
|||
main: io.papermc.paper.testplugin.TestPlugin
|
||||
description: Paper Test Plugin
|
||||
author: PaperMC
|
||||
api-version: 1.17
|
||||
api-version: ${apiversion}
|
||||
load: STARTUP
|
||||
|
|
Loading…
Reference in a new issue