papermc/test-plugin/build.gradle.kts

24 lines
542 B
Text
Raw Normal View History

2021-07-09 10:04:33 +00:00
version = "1.0.0-SNAPSHOT"
repositories {
maven("https://libraries.minecraft.net")
}
dependencies {
2021-11-26 11:31:59 +00:00
compileOnly(project(":paper-api"))
compileOnly(project(":paper-mojangapi"))
2021-07-09 10:04:33 +00:00
}
tasks.processResources {
2022-02-21 20:44:17 +00:00
val apiVersion = rootProject.providers.gradleProperty("mcVersion").get()
.split(".", "-").take(2).joinToString(".")
val props = mapOf(
"version" to project.version,
"apiversion" to apiVersion,
)
inputs.properties(props)
2021-07-09 10:04:33 +00:00
filesMatching("plugin.yml") {
expand(props)
2021-07-09 10:04:33 +00:00
}
}