@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user