2024-09-08 05:17:08 +02:00
|
|
|
plugins {
|
|
|
|
alias(libs.plugins.runPaper)
|
|
|
|
alias(libs.plugins.shadow)
|
|
|
|
}
|
|
|
|
|
2024-10-08 21:18:58 +02:00
|
|
|
repositories {
|
|
|
|
maven("https://repo.extendedclip.com/content/repositories/placeholderapi")
|
2024-09-08 05:17:08 +02:00
|
|
|
|
2024-10-08 21:18:58 +02:00
|
|
|
maven("https://repo.papermc.io/repository/maven-public")
|
2024-09-08 05:17:08 +02:00
|
|
|
|
2024-10-08 21:18:58 +02:00
|
|
|
maven("https://repo.triumphteam.dev/snapshots")
|
2024-09-08 05:17:08 +02:00
|
|
|
|
2024-10-08 21:18:58 +02:00
|
|
|
maven("https://repo.fancyplugins.de/releases")
|
2024-09-08 05:17:08 +02:00
|
|
|
|
2024-10-08 21:18:58 +02:00
|
|
|
maven("https://repo.oraxen.com/releases")
|
2024-09-08 05:17:08 +02:00
|
|
|
|
2024-10-08 21:18:58 +02:00
|
|
|
maven("https://maven.enginehub.org/repo")
|
2024-09-08 05:17:08 +02:00
|
|
|
}
|
|
|
|
|
2024-10-08 21:18:58 +02:00
|
|
|
dependencies {
|
|
|
|
implementation(libs.vital.paper) {
|
|
|
|
exclude("org.yaml")
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOnly(libs.bundles.shared)
|
|
|
|
|
|
|
|
compileOnly(libs.paper)
|
2024-09-08 05:17:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
runServer {
|
|
|
|
jvmArgs("-Dnet.kyori.ansi.colorLevel=truecolor")
|
|
|
|
|
|
|
|
defaultCharacterEncoding = Charsets.UTF_8.name()
|
|
|
|
|
|
|
|
minecraftVersion(libs.versions.minecraft.get())
|
|
|
|
}
|
|
|
|
|
|
|
|
assemble {
|
2024-09-08 05:48:42 +02:00
|
|
|
dependsOn(shadowJar)
|
2024-09-08 05:17:08 +02:00
|
|
|
|
|
|
|
doLast {
|
|
|
|
copy {
|
2024-09-08 05:48:42 +02:00
|
|
|
from(shadowJar.get())
|
2024-09-08 05:17:08 +02:00
|
|
|
into(rootProject.projectDir.resolve("jars"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
archiveBaseName.set(rootProject.name)
|
|
|
|
archiveClassifier.set("")
|
|
|
|
|
|
|
|
listOf(
|
2024-10-08 21:18:58 +02:00
|
|
|
"com.ryderbelserion.vital"
|
2024-09-08 05:17:08 +02:00
|
|
|
).forEach {
|
|
|
|
relocate(it, "libs.$it")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
processResources {
|
|
|
|
inputs.properties("name" to rootProject.name)
|
|
|
|
inputs.properties("version" to project.version)
|
|
|
|
inputs.properties("group" to project.group)
|
|
|
|
inputs.properties("apiVersion" to libs.versions.minecraft.get())
|
|
|
|
inputs.properties("description" to project.properties["description"])
|
|
|
|
inputs.properties("authors" to project.properties["authors"])
|
|
|
|
inputs.properties("website" to project.properties["website"])
|
|
|
|
|
|
|
|
filesMatching("plugin.yml") {
|
|
|
|
expand(inputs.properties)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|