CrazyAuctions/paper/build.gradle.kts

73 lines
1.7 KiB
Plaintext
Raw Normal View History

2024-09-08 05:17:08 +02:00
plugins {
alias(libs.plugins.paperweight)
alias(libs.plugins.runPaper)
alias(libs.plugins.shadow)
`paper-plugin`
}
dependencies {
paperweight.paperDevBundle(libs.versions.paper)
implementation(libs.vital.paper) {
exclude("org.yaml")
}
compileOnly(libs.placeholderapi)
compileOnly(libs.oraxen)
compileOnly(libs.vault)
compileOnly(fileTree("libs").include("*.jar"))
}
paperweight {
2024-09-08 05:48:42 +02:00
reobfArtifactConfiguration = io.papermc.paperweight.userdev.ReobfArtifactConfiguration.MOJANG_PRODUCTION
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(
"com.ryderbelserion"
).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)
}
}
}