Files
TCOWW/build.gradle.kts

76 lines
1.9 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-06-28 14:53:52 +02:00
}
group = "fr.azur"
version = "1.1-SNAPSHOT"
2025-06-28 14:53:52 +02:00
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-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
implementation("net.skinsrestorer:skinsrestorer-api:$skinRestorerVersion")
implementation("de.maxhenkel.voicechat:voicechat-api:$voiceChatApiVersion")
2025-06-28 14:53:52 +02:00
implementation(kotlin("stdlib-jdk8"))
}
val targetJavaVersion = 21
kotlin {
jvmToolchain(targetJavaVersion)
}
tasks {
runServer {
downloadPlugins {
modrinth("plasmo-voice", "bukkit-$voiceChatVersion")
modrinth("skinsrestorer", skinRestorerVersion)
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()
// exclude("META-INF/*.kotlin_module")
// exclude("META-INF/*.version")
}
}