Files
JStom/build.gradle.kts
Zephrynis 3dae45644c
All checks were successful
Build JStom / build (push) Successful in 1m23s
Refactor build configuration and update Minestom dependency to latest stable version
2026-01-26 22:03:19 +00:00

50 lines
1.0 KiB
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 other JitPack dependencies if any
}
dependencies {
// Minestom - using latest stable version
implementation("net.minestom:minestom:2026.01.08-1.21.11")
// 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"
}