Initial commit: JS-powered Minestom server with hot-reloading and Gitea Action
Some checks failed
Build JStom / build (push) Has been cancelled
Some checks failed
Build JStom / build (push) Has been cancelled
This commit is contained in:
38
build.gradle.kts
Normal file
38
build.gradle.kts
Normal file
@@ -0,0 +1,38 @@
|
||||
plugins {
|
||||
id("java")
|
||||
id("application")
|
||||
}
|
||||
|
||||
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")
|
||||
}
|
||||
|
||||
application {
|
||||
mainClass.set("net.jstom.Main")
|
||||
}
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion.set(JavaLanguageVersion.of(25))
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<JavaCompile> {
|
||||
options.encoding = "UTF-8"
|
||||
}
|
||||
Reference in New Issue
Block a user