Skip to content
Phil Beauvoir edited this page Oct 25, 2024 · 10 revisions

GraalVM Dependencies

See https://github.com/archimatetool/archi-scripting-plugin/issues/85

GraalVM 22.3.0

Jar Maven
graal-sdk-22.3.0.jar https://mvnrepository.com/artifact/org.graalvm.sdk/graal-sdk
js-22.3.0.jar https://mvnrepository.com/artifact/org.graalvm.js/js
js-scriptengine-22.3.0.jar https://mvnrepository.com/artifact/org.graalvm.js/js-scriptengine
truffle-api-22.3.0.jar https://mvnrepository.com/artifact/org.graalvm.truffle/truffle-api
regex-22.3.0.jar https://mvnrepository.com/artifact/org.graalvm.regex/regex
icu4j-71.1 https://mvnrepository.com/artifact/com.ibm.icu/icu4j

A useful link for dependencies:

https://www.graalvm.org/22.2/reference-manual/js/RunOnJDK/

GraalVM 24.1.1

Versions of GraalVM from 23.1 and later have changed the jars and dependencies:

Jar Maven
js-scriptengine-24.1.1.jar https://mvnrepository.com/artifact/org.graalvm.js/js-scriptengine
js-language-24.1.1.jar https://mvnrepository.com/artifact/org.graalvm.js/js-language
polyglot-24.1.1.jar https://mvnrepository.com/artifact/org.graalvm.polyglot/polyglot
truffle-api-24.1.1.jar https://mvnrepository.com/artifact/org.graalvm.truffle/truffle-api
regex-24.1.1.jar https://mvnrepository.com/artifact/org.graalvm.regex/regex
nativeimage-24.1.1.jar https://mvnrepository.com/artifact/org.graalvm.sdk/nativeimage
word-24.1.1.jar https://mvnrepository.com/artifact/org.graalvm.sdk/word
collections-24.1.1.jar https://mvnrepository.com/artifact/org.graalvm.sdk/collections
icu4j-24.1.1.jar https://mvnrepository.com/artifact/org.graalvm.shadowed/icu4j

Note that GraalVM uses its own "shadowed" version of icu4j.

Dependency checking

To determine dependencies use this pom.xml file and run mvn dependency:tree:

Click me
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>test</groupId>
    <artifactId>test</artifactId>
    <version>1.0.0</version>
    <packaging>pom</packaging>

    <dependencies>
        <dependency>
            <groupId>org.graalvm.js</groupId>
            <artifactId>js-scriptengine</artifactId>
            <version>24.1.1</version>
        </dependency>

        <dependency>
            <groupId>org.graalvm.js</groupId>
            <artifactId>js-language</artifactId>
            <version>24.1.1</version>
        </dependency>

        <dependency>
            <groupId>org.graalvm.polyglot</groupId>
            <artifactId>polyglot</artifactId>
            <version>24.1.1</version>
        </dependency>

        <dependency>
            <groupId>org.graalvm.truffle</groupId>
            <artifactId>truffle-api</artifactId>
            <version>24.1.1</version>
        </dependency>
    </dependencies>
</project>