Skip to content

Commit 71bbb80

Browse files
committed
change to graalvm compiler (was interpreter)
1 parent ce247a0 commit 71bbb80

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
id 'fabric-loom' version '1.0-SNAPSHOT'
33
id 'maven-publish'
44
id 'com.github.johnrengelman.shadow' version '7.1.2'
5+
id "org.graalvm.plugin.compiler" version "0.1.0-alpha2"
56
}
67

78
import net.fabricmc.loom.task.RemapJarTask
@@ -13,6 +14,10 @@ repositories {
1314
mavenCentral()
1415
}
1516

17+
graal {
18+
version "22.3.0"
19+
}
20+
1621
dependencies {
1722
minecraft "com.mojang:minecraft:${project.minecraft_version}"
1823
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"

src/main/java/de/blazemcworld/jsscripts/Script.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ public Script(File file) throws Exception {
2525
ctx = Context.newBuilder()
2626
.allowAllAccess(true)
2727
.logHandler(System.out)
28-
.option("engine.WarnInterpreterOnly", "false")
2928
.build();
3029
Value bindings = ctx.getBindings("js");
3130
bindings.putMember("script", this);

0 commit comments

Comments
 (0)