Skip to content
Snippets Groups Projects
Commit a1ed117e authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Downgrade GraalVM to v22 - which works with Java 11 and 17

parent b2c79413
No related branches found
No related tags found
No related merge requests found
Pipeline #3135 passed
...@@ -41,17 +41,17 @@ ...@@ -41,17 +41,17 @@
<dependency> <dependency>
<groupId>org.graalvm.js</groupId> <groupId>org.graalvm.js</groupId>
<artifactId>js</artifactId> <artifactId>js</artifactId>
<version>23.0.2</version> <version>22.3.4</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.graalvm.js</groupId> <groupId>org.graalvm.js</groupId>
<artifactId>js-scriptengine</artifactId> <artifactId>js-scriptengine</artifactId>
<version>23.1.1</version> <version>22.3.4</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.graalvm.truffle</groupId> <groupId>org.graalvm.truffle</groupId>
<artifactId>truffle-api</artifactId> <artifactId>truffle-api</artifactId>
<version>23.1.1</version> <version>22.3.4</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.eclipsesource.j2v8</groupId> <groupId>com.eclipsesource.j2v8</groupId>
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
</dependency> </dependency>
</dependencies> </dependencies>
<properties> <properties>
<maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.target>17</maven.compiler.target>
</properties> </properties>
</project> </project>
...@@ -59,7 +59,7 @@ public class FallArmywormModelGraalVMAdapter extends I18nImpl implements Model{ ...@@ -59,7 +59,7 @@ public class FallArmywormModelGraalVMAdapter extends I18nImpl implements Model{
super("no.nibio.vips.model.fallarmywormmodel.texts"); super("no.nibio.vips.model.fallarmywormmodel.texts");
modelUtil = new ModelUtil(); modelUtil = new ModelUtil();
try { try {
jsContext = Context.create("js"); jsContext = Context.newBuilder("js").build();
jsBindings = jsContext.getBindings("js"); jsBindings = jsContext.getBindings("js");
this.addJavaScript("/js/moment.min.js"); this.addJavaScript("/js/moment.min.js");
this.addJavaScript("/js/moment-timezone-with-data.min.js"); this.addJavaScript("/js/moment-timezone-with-data.min.js");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment