2021-07-09 12:04:33 +02:00
|
|
|
version = "1.0.0-SNAPSHOT"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
maven("https://libraries.minecraft.net")
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-11-26 12:31:59 +01:00
|
|
|
compileOnly(project(":paper-api"))
|
|
|
|
compileOnly(project(":paper-mojangapi"))
|
2021-07-09 12:04:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.processResources {
|
2021-12-29 01:50:02 +01:00
|
|
|
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)
|
2021-07-09 12:04:33 +02:00
|
|
|
filesMatching("plugin.yml") {
|
2021-12-29 01:50:02 +01:00
|
|
|
expand(props)
|
2021-07-09 12:04:33 +02:00
|
|
|
}
|
|
|
|
}
|