Files
JStom/build.gradle.kts
Zephrynis c918695a68
All checks were successful
Build JStom / build (push) Successful in 1m24s
Switch to gradleup shadow plugin
2026-01-25 23:20:40 +00:00

50 lines
1015 B
Plaintext

plugins {
id("java")
id("application")
id("com.gradleup.shadow") version "8.3.3"
}
group = "net.jstom"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("https://jitpack.io") // For Minestom
}
dependencies {
// Minestom - using master-SNAPSHOT
implementation("com.github.Minestom:Minestom:master-SNAPSHOT")
// GraalJS for JavaScript engine
implementation("org.graalvm.polyglot:polyglot:24.1.2")
implementation("org.graalvm.polyglot:js:24.1.2")
// Logging
implementation("org.slf4j:slf4j-simple:2.0.9")
// Config
implementation("org.yaml:snakeyaml:2.2")
}
application {
mainClass.set("net.jstom.Main")
}
tasks {
shadowJar {
mergeServiceFiles()
archiveClassifier.set("") // Remove '-all' suffix so it replaces the default jar or just sits nicely
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(25))
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}