Files
JStom/build.gradle.kts
Zephrynis 469b6ff8ec
All checks were successful
Build JStom / build (push) Successful in 1m27s
Update build configuration and improve server status handling
- Change Minestom dependency to use official snapshots
- Adjust repository URLs for better clarity
- Refactor server status handling to use ResponseData
2026-01-26 19:28:00 +00:00

51 lines
1.1 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://s01.oss.sonatype.org/content/repositories/snapshots/")
maven("https://jitpack.io") // For other JitPack dependencies if any
}
dependencies {
// Minestom - using official snapshots
implementation("net.minestom:minestom-snapshots:dev")
// 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"
}