|
23 | 23 | !jdk.vm.ci.services
|
24 | 24 | </bnd.importpackage>
|
25 | 25 | <!-- Remember to check if the fix https://github.com/openhab/openhab-core/pull/4437 still works when upgrading GraalJS -->
|
26 |
| - <graal.version>22.0.0.2</graal.version> <!-- DO NOT UPGRADE: 22.0.0.2 is the latest version working on armv7l / OpenJDK 11.0.16 & armv7l / Zulu 17.0.5+8 --> |
| 26 | + <graaljs.version>24.1.1</graaljs.version> |
27 | 27 | <oh.version>${project.version}</oh.version>
|
28 | 28 | < ohjs.version> [email protected]</ ohjs.version>
|
29 | 29 | </properties>
|
30 | 30 |
|
31 | 31 | <build>
|
32 | 32 | <plugins>
|
33 |
| - <!-- exclude META-INF/services/com.oracle.truffle.api.TruffleLanguage$Provider when unpacking dependencies --> |
| 33 | + <!-- bundle the modular dependencies into an uber-JAR --> |
34 | 34 | <plugin>
|
35 | 35 | <groupId>org.apache.maven.plugins</groupId>
|
36 |
| - <artifactId>maven-dependency-plugin</artifactId> |
| 36 | + <artifactId>maven-shade-plugin</artifactId> |
| 37 | + <version>3.6.0</version> |
37 | 38 | <executions>
|
38 | 39 | <execution>
|
39 |
| - <id>embed-dependencies</id> |
| 40 | + <phase>package</phase> |
40 | 41 | <goals>
|
41 |
| - <goal>unpack-dependencies</goal> |
| 42 | + <goal>shade</goal> |
42 | 43 | </goals>
|
43 | 44 | <configuration>
|
44 |
| - <excludes>META-INF/services/com.oracle.truffle.api.TruffleLanguage$Provider</excludes> <!-- we'll provide this --> |
| 45 | + <artifactSet> |
| 46 | + <excludes> |
| 47 | + <exclude>org.lastnpe.eea:eea-all</exclude> |
| 48 | + <exclude>org.apache.karaf.features:framework</exclude> |
| 49 | + </excludes> |
| 50 | + </artifactSet> |
| 51 | + <createDependencyReducedPom>false</createDependencyReducedPom> |
| 52 | + <transformers> |
| 53 | + <!-- Transformer to merge module-info.class files, if needed --> |
| 54 | + <transformer |
| 55 | + implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> |
| 56 | + </transformers> |
45 | 57 | </configuration>
|
46 | 58 | </execution>
|
47 | 59 | </executions>
|
|
130 | 142 |
|
131 | 143 | <dependencies>
|
132 | 144 | <dependency>
|
133 |
| - <groupId>org.graalvm.sdk</groupId> |
134 |
| - <artifactId>graal-sdk</artifactId> |
135 |
| - <version>${graal.version}</version> |
136 |
| - </dependency> |
137 |
| - <dependency> |
138 |
| - <groupId>org.graalvm.truffle</groupId> |
139 |
| - <artifactId>truffle-api</artifactId> |
140 |
| - <version>${graal.version}</version> |
| 145 | + <groupId>org.graalvm.polyglot</groupId> |
| 146 | + <artifactId>polyglot</artifactId> |
| 147 | + <version>${graaljs.version}</version> |
141 | 148 | </dependency>
|
142 | 149 | <!-- Graal JavaScript ScriptEngine JSR 223 support -->
|
143 | 150 | <dependency>
|
144 | 151 | <groupId>org.graalvm.js</groupId>
|
145 | 152 | <artifactId>js-scriptengine</artifactId>
|
146 |
| - <version>${graal.version}</version> |
| 153 | + <version>${graaljs.version}</version> |
147 | 154 | </dependency>
|
148 | 155 | <!-- Graal TRegex engine (internally used by Graal JavaScript engine) -->
|
149 | 156 | <dependency>
|
150 | 157 | <groupId>org.graalvm.regex</groupId>
|
151 | 158 | <artifactId>regex</artifactId>
|
152 |
| - <version>${graal.version}</version> |
| 159 | + <version>${graaljs.version}</version> |
153 | 160 | </dependency>
|
154 | 161 | <!-- Graal JavaScript engine (depends on Graal TRegex engine, must be added after it) -->
|
155 | 162 | <dependency>
|
156 |
| - <groupId>org.graalvm.js</groupId> |
157 |
| - <artifactId>js</artifactId> |
158 |
| - <version>${graal.version}</version> |
| 163 | + <groupId>org.graalvm.polyglot</groupId> |
| 164 | + <artifactId>js-community</artifactId> |
| 165 | + <version>${graaljs.version}</version> |
| 166 | + <type>pom</type> |
| 167 | + <scope>runtime</scope> |
159 | 168 | </dependency>
|
160 | 169 | </dependencies>
|
161 | 170 | </project>
|
0 commit comments