Skip to content
This repository was archived by the owner on May 22, 2024. It is now read-only.

Commit 420b7d3

Browse files
author
Jaroslav Tulach
committed
No need to use modules in the end user application and its tests
1 parent e5c8f6f commit 420b7d3

File tree

2 files changed

+22
-12
lines changed

2 files changed

+22
-12
lines changed

pom.xml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<url>http://maven.apache.org</url>
1010
<properties>
1111
<graalvm.version>1.0.0-rc8</graalvm.version>
12+
<compiler.dir>${project.build.directory}/compiler</compiler.dir>
1213
</properties>
1314
<build>
1415
<pluginManagement>
@@ -25,7 +26,7 @@
2526
<artifactId>maven-surefire-plugin</artifactId>
2627
<version>2.22.1</version>
2728
<configuration>
28-
<argLine>-XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI --upgrade-module-path=${project.build.directory}/compiler-${graalvm.version}.jar</argLine>
29+
<argLine>-XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI --module-path=${compiler.dir} --upgrade-module-path=${compiler.dir}/compiler.jar</argLine>
2930
</configuration>
3031
</plugin>
3132
<plugin>
@@ -47,10 +48,26 @@
4748
<version>${graalvm.version}</version>
4849
<type>jar</type>
4950
<overWrite>true</overWrite>
50-
<destFileName>compiler-${graalvm.version}.jar</destFileName>
51+
<destFileName>compiler.jar</destFileName>
52+
</artifactItem>
53+
<artifactItem>
54+
<groupId>org.graalvm.truffle</groupId>
55+
<artifactId>truffle-api</artifactId>
56+
<version>${graalvm.version}</version>
57+
<type>jar</type>
58+
<overWrite>true</overWrite>
59+
<destFileName>truffle-api.jar</destFileName>
60+
</artifactItem>
61+
<artifactItem>
62+
<groupId>org.graalvm.sdk</groupId>
63+
<artifactId>graal-sdk</artifactId>
64+
<version>${graalvm.version}</version>
65+
<type>jar</type>
66+
<overWrite>true</overWrite>
67+
<destFileName>graal-sdk.jar</destFileName>
5168
</artifactItem>
5269
</artifactItems>
53-
<outputDirectory>${project.build.directory}</outputDirectory>
70+
<outputDirectory>${compiler.dir}</outputDirectory>
5471
</configuration>
5572
</execution>
5673
</executions>
@@ -75,7 +92,7 @@
7592
<classpath/>
7693
<argument>-XX:+UnlockExperimentalVMOptions</argument>
7794
<argument>-XX:+EnableJVMCI</argument>
78-
<argument>--upgrade-module-path=${project.build.directory}/compiler-${graalvm.version}.jar</argument>
95+
<argument>--upgrade-module-path=${compiler.dir}/compiler.jar</argument>
7996
<argument>com.mycompany.app.App</argument>
8097
</arguments>
8198
</configuration>
@@ -126,7 +143,7 @@
126143
<groupId>org.graalvm.truffle</groupId>
127144
<artifactId>truffle-api</artifactId>
128145
<version>${graalvm.version}</version>
129-
<scope>compile</scope>
146+
<scope>runtime</scope>
130147
</dependency>
131148
<dependency>
132149
<groupId>org.graalvm.js</groupId>

src/main/java/module-info.java

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)