Skip to content

Commit 1229f00

Browse files
authored
ci: update native-image testing to GraalVM 21
1 parent 89dbda1 commit 1229f00

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
strategy:
7070
matrix:
7171
os: [ ubuntu-latest, windows-latest, macos-latest ]
72-
java: [ '17', '20' ]
72+
java: [ '17', '21' ]
7373
profiles: ['native', 'native,native-exported']
7474
runs-on: ${{ matrix.os }}
7575
steps:

pom.xml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1414
<junit.version>5.10.0</junit.version>
1515
<surefire.version>3.1.2</surefire.version>
16-
<graalvm.version>22.3.2</graalvm.version>
16+
<graalvm.version>23.1.0</graalvm.version>
1717
<java9.sourceDirectory>${project.basedir}/src/main/java9</java9.sourceDirectory>
1818
</properties>
1919

@@ -344,7 +344,7 @@
344344
<plugin>
345345
<groupId>org.graalvm.buildtools</groupId>
346346
<artifactId>native-maven-plugin</artifactId>
347-
<version>0.9.25</version>
347+
<version>0.9.27</version>
348348
<extensions>true</extensions>
349349
<executions>
350350
<execution>
@@ -420,7 +420,7 @@
420420
-->
421421
<dependency>
422422
<groupId>org.graalvm.sdk</groupId>
423-
<artifactId>graal-sdk</artifactId>
423+
<artifactId>nativeimage</artifactId>
424424
<version>${graalvm.version}</version>
425425
<scope>provided</scope>
426426
</dependency>
@@ -435,6 +435,16 @@
435435
<artifactId>assertj-core</artifactId>
436436
<version>3.24.2</version>
437437
<scope>test</scope>
438+
<exclusions>
439+
<exclusion>
440+
<!--
441+
assertj bundles an outdated version of byte-buddy.
442+
This exclusion this makes sure the one junit brings in is used.
443+
-->
444+
<groupId>net.bytebuddy</groupId>
445+
<artifactId>byte-buddy</artifactId>
446+
</exclusion>
447+
</exclusions>
438448
</dependency>
439449
<dependency>
440450
<groupId>org.junit-pioneer</groupId>

src/main/java9/module-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
requires org.slf4j;
44
requires transitive java.sql;
55
requires transitive java.sql.rowset;
6-
requires static org.graalvm.sdk;
6+
requires static org.graalvm.nativeimage;
77

88
exports org.sqlite;
99
exports org.sqlite.core;

0 commit comments

Comments
 (0)