graalvm-examples icon indicating copy to clipboard operation
graalvm-examples copied to clipboard

Update example to be usable with GraalVM 19.3.1

Open mipastgt opened this issue 5 years ago • 2 comments

I tried to get this example running with GraalVM 19.3.1 (11) but somehow this did not work. Obviously a lot has changed since this example was created. Ideally I would like to get SQLite working with just the native-image Maven plugin and without having to provide extra source code. Is that possible? And I'd like that to work with the latest version of SQLite which is

<!-- https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc -->
<dependency>
    <groupId>org.xerial</groupId>
    <artifactId>sqlite-jdbc</artifactId>
    <version>3.30.1</version>
</dependency>

mipastgt avatar Jan 23 '20 09:01 mipastgt

Pinging - not sure if 20 is viable now.

yschimke avatar Apr 20 '20 09:04 yschimke

Tried it on Graalvm 20.0.0, the necessary configuration reduced a lot, but is yet required. Unfortunately palantir gradle plugin doesn't support Native Image from Graalvm 19.3.

You can check the updated sample, it expects you to configure native-image on PATH

mageddo avatar Apr 28 '20 00:04 mageddo