PaperMC/test-plugin/build.gradle.kts
2023-02-19 08:57:10 -06:00

19 lines
485 B
Text

version = "1.0.0-SNAPSHOT"
dependencies {
compileOnly(project(":paper-api"))
compileOnly(project(":paper-mojangapi"))
}
tasks.processResources {
val apiVersion = rootProject.providers.gradleProperty("mcVersion").get()
.split(".", "-").take(2).joinToString(".")
val props = mapOf(
"version" to project.version,
"apiversion" to apiVersion,
)
inputs.properties(props)
filesMatching("paper-plugin.yml") {
expand(props)
}
}