File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
src/main/java/org/example/embedding Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 12
12
- uses : actions/checkout@v4
13
13
- uses : graalvm/setup-graalvm@v1
14
14
with :
15
- java-version : ' 21 .0.2 '
15
+ java-version : ' 22 .0.1 '
16
16
distribution : ' graalvm'
17
17
github-token : ${{ secrets.GITHUB_TOKEN }}
18
18
native-image-job-reports : ' true'
31
31
- uses : actions/checkout@v4
32
32
- uses : graalvm/setup-graalvm@v1
33
33
with :
34
- java-version : ' 21 .0.2 '
34
+ java-version : ' 22 .0.1 '
35
35
distribution : ' graalvm'
36
36
github-token : ${{ secrets.GITHUB_TOKEN }}
37
37
native-image-job-reports : ' true'
Original file line number Diff line number Diff line change 1
- # Polyglot Embedding Demo with GraalVM for JDK 21
2
- Demonstration repository showing polyglot embedding with GraalVM JDK 21 using Maven and Gradle.
1
+ # Polyglot Embedding Demo with GraalVM
2
+ Demonstration repository showing polyglot embedding with GraalVM using Maven and Gradle.
3
3
It contains a simple Main and Test class to bootstrap a polyglot embedding project.
4
4
5
- For demonstration showing polyglot native embedding with GraalVM JDK 21 using Maven, see
5
+ For demonstration showing polyglot native embedding with GraalVM using Maven, see
6
6
the [ Native embedding Maven project] ( native-embedding/README.md ) located in the ` native-embedding ` subdirectory.
7
7
8
8
For more details on polyglot embedding please see the docs:
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import java.nio.file.*
3
3
plugins {
4
4
id(" java" )
5
5
id(" application" )
6
- id(" org.graalvm.buildtools.native" ) version " 0.9.28 "
6
+ id(" org.graalvm.buildtools.native" ) version " 0.10.2 "
7
7
}
8
8
9
9
java {
@@ -20,7 +20,7 @@ group = "org.example"
20
20
version = " 1.0-SNAPSHOT"
21
21
description = " embedding"
22
22
23
- var graalVMVersion: String = " 23.1.2 " ;
23
+ var graalVMVersion: String = " 24.0.1 " ;
24
24
dependencies {
25
25
implementation(" org.graalvm.polyglot:polyglot:$graalVMVersion " )
26
26
implementation(" org.graalvm.polyglot:js:$graalVMVersion " )
Original file line number Diff line number Diff line change 24
24
25
25
<properties >
26
26
<!-- Select the GraalVM version to use. -->
27
- <graalvm .version>23.1.2 </graalvm .version>
27
+ <graalvm .version>24.0.1 </graalvm .version>
28
28
</properties >
29
29
30
30
<dependencies >
156
156
<plugin >
157
157
<groupId >org.graalvm.buildtools</groupId >
158
158
<artifactId >native-maven-plugin</artifactId >
159
- <version >0.9.28 </version >
159
+ <version >0.10.2 </version >
160
160
<extensions >true</extensions >
161
161
<executions >
162
162
<execution >
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public static void main(String[] args) throws IOException {
71
71
break ;
72
72
case "wasm" :
73
73
// with wasm we compute factorial
74
- context .eval (Source .newBuilder ("wasm" , Main .class .getResource ("factorial.wasm" )).build ());
74
+ context .eval (Source .newBuilder ("wasm" , Main .class .getResource ("factorial.wasm" )).name ( "main" ). build ());
75
75
Value factorial = context .getBindings ("wasm" ).getMember ("main" ).getMember ("fac" );
76
76
System .out .println ("wasm: factorial(20) = " + factorial .execute (20L ));
77
77
break ;
You can’t perform that action at this time.
0 commit comments