2021-07-09 12:04:33 +02:00
|
|
|
version = "1.0.0-SNAPSHOT"
|
2023-12-20 11:05:06 +01:00
|
|
|
repositories {
|
|
|
|
maven("https://repo.papermc.io/repository/maven-public/")
|
|
|
|
}
|
2021-07-09 12:04:33 +02:00
|
|
|
|
|
|
|
dependencies {
|
2023-12-20 11:05:06 +01:00
|
|
|
// compileOnly(project(":paper-api"))
|
|
|
|
compileOnly("io.papermc.paper:paper-api:1.21.1-R0.1-SNAPSHOT")
|
2021-07-09 12:04:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.processResources {
|
2022-02-21 21:44:17 +01:00
|
|
|
val apiVersion = rootProject.providers.gradleProperty("mcVersion").get()
|
2021-12-29 01:50:02 +01:00
|
|
|
val props = mapOf(
|
|
|
|
"version" to project.version,
|
2023-06-09 04:45:48 +02:00
|
|
|
"apiversion" to "\"$apiVersion\"",
|
2021-12-29 01:50:02 +01:00
|
|
|
)
|
|
|
|
inputs.properties(props)
|
2023-02-19 15:57:10 +01:00
|
|
|
filesMatching("paper-plugin.yml") {
|
2021-12-29 01:50:02 +01:00
|
|
|
expand(props)
|
2021-07-09 12:04:33 +02:00
|
|
|
}
|
|
|
|
}
|