Files
TCOWW/build.gradle.kts

77 lines
2.0 KiB
Kotlin
Raw Normal View History

2025-06-28 14:53:52 +02:00
plugins {
kotlin("jvm") version "2.2.0-Beta1"
id("com.gradleup.shadow") version "9.2.2"
id("xyz.jpenilla.run-paper") version "3.0.2"
id("io.papermc.paperweight.userdev") version "2.0.0-beta.19"
2025-11-30 17:22:48 +01:00
id("org.jlleitschuh.gradle.ktlint") version "14.0.1"
2025-06-28 14:53:52 +02:00
}
group = "fr.azur"
2025-11-30 17:22:48 +01:00
val version: String by project
val minecraftVersion: String by project
val paperVersion: String by project
val skinRestorerVersion: String by project
val voiceChatVersion: String by project
val voiceChatApiVersion: String by project
2025-11-30 17:22:48 +01:00
val luckPermsVersion: String by project
2025-06-28 14:53:52 +02:00
repositories {
mavenCentral()
gradlePluginPortal()
maven("https://repo.papermc.io/repository/maven-public/") {
name = "papermc-repo"
}
maven("https://oss.sonatype.org/content/groups/public/") {
name = "sonatype"
}
maven("https://repo.codemc.org/repository/maven-public/") {
name = "codemc"
}
maven("https://maven.maxhenkel.de/repository/public") {
name = "svc"
}
2025-06-28 14:53:52 +02:00
}
dependencies {
paperweight.paperDevBundle("$minecraftVersion-$paperVersion")
2025-06-28 14:53:52 +02:00
2025-11-30 17:22:48 +01:00
compileOnly("net.skinsrestorer:skinsrestorer-api:$skinRestorerVersion")
compileOnly("de.maxhenkel.voicechat:voicechat-api:$voiceChatApiVersion")
2025-06-28 14:53:52 +02:00
implementation(kotlin("stdlib-jdk8"))
2025-11-30 17:22:48 +01:00
implementation(kotlin("reflect"))
2025-06-28 14:53:52 +02:00
}
val targetJavaVersion = 21
kotlin {
jvmToolchain(targetJavaVersion)
}
tasks {
runServer {
downloadPlugins {
modrinth("skinsrestorer", skinRestorerVersion)
2025-11-30 19:04:28 +01:00
modrinth("luckperms", "v$luckPermsVersion-bukkit")
modrinth("simple-voice-chat", "bukkit-$voiceChatVersion")
2025-06-28 14:53:52 +02:00
}
minecraftVersion(minecraftVersion)
2025-06-28 14:53:52 +02:00
}
build {
dependsOn("shadowJar")
}
processResources {
val props = mapOf("version" to version)
inputs.properties(props)
filteringCharset = "UTF-8"
filesMatching("paper-plugin.yml") {
expand(props)
}
}
shadowJar {
archiveBaseName.set("tcoww")
minimize()
}
2025-11-30 17:22:48 +01:00
}