diff --git a/build.gradle b/build.gradle index bc0cba4..d29f15e 100644 --- a/build.gradle +++ b/build.gradle @@ -2,6 +2,7 @@ plugins { id 'fabric-loom' version '1.0-SNAPSHOT' id 'maven-publish' id 'com.github.johnrengelman.shadow' version '7.1.2' + id "org.graalvm.plugin.compiler" version "0.1.0-alpha2" } import net.fabricmc.loom.task.RemapJarTask @@ -13,6 +14,10 @@ repositories { mavenCentral() } +graal { + version "22.3.0" +} + dependencies { minecraft "com.mojang:minecraft:${project.minecraft_version}" mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" diff --git a/src/main/java/de/blazemcworld/jsscripts/Script.java b/src/main/java/de/blazemcworld/jsscripts/Script.java index 6788a09..97c0975 100644 --- a/src/main/java/de/blazemcworld/jsscripts/Script.java +++ b/src/main/java/de/blazemcworld/jsscripts/Script.java @@ -25,7 +25,6 @@ public Script(File file) throws Exception { ctx = Context.newBuilder() .allowAllAccess(true) .logHandler(System.out) - .option("engine.WarnInterpreterOnly", "false") .build(); Value bindings = ctx.getBindings("js"); bindings.putMember("script", this);