3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-16 19:40:07 +01:00
Paper/test-plugin/build.gradle.kts
2022-02-21 13:44:17 -07:00

24 Zeilen
542 B
Plaintext

version = "1.0.0-SNAPSHOT"
repositories {
maven("https://libraries.minecraft.net")
}
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("plugin.yml") {
expand(props)
}
}