46 lines
1.0 KiB
Plaintext
46 lines
1.0 KiB
Plaintext
plugins {
|
|
id("paper-plugin")
|
|
}
|
|
|
|
val mcVersion = rootProject.properties["minecraftVersion"] as String
|
|
|
|
dependencies {
|
|
api(project(":common"))
|
|
|
|
implementation(libs.cluster.paper)
|
|
|
|
implementation(libs.jorel.bukkit)
|
|
|
|
implementation(libs.bstats)
|
|
|
|
compileOnly(fileTree("libs").include("*.jar"))
|
|
}
|
|
|
|
tasks {
|
|
shadowJar {
|
|
listOf(
|
|
//"com.ryderbelserion.cluster.paper",
|
|
"org.bstats"
|
|
).forEach {
|
|
relocate(it, "libs.$it")
|
|
}
|
|
}
|
|
|
|
processResources {
|
|
val properties = hashMapOf(
|
|
"name" to rootProject.name,
|
|
"version" to project.version,
|
|
"group" to rootProject.group,
|
|
"description" to rootProject.description,
|
|
"apiVersion" to rootProject.properties["apiVersion"],
|
|
"authors" to rootProject.properties["authors"],
|
|
"website" to rootProject.properties["website"]
|
|
)
|
|
|
|
inputs.properties(properties)
|
|
|
|
filesMatching("paper-plugin.yml") {
|
|
expand(properties)
|
|
}
|
|
}
|
|
} |