Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update build #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update build #1

wants to merge 1 commit into from

Conversation

melix
Copy link

@melix melix commented Nov 29, 2022

This commit switches from Maven to Gradle for building the project. It makes the instructions simpler, by using Gradle plugins:

  • the application plugin exposes the run method directly for the JVM version, without having to explain to grow the stack size
  • the official GraalVM native plugin exposes the nativeCompile and nativeRun tasks, respectively for building the native image and executing it

In addition, this commit switches from using Java 19 to Java 11. The underlying reason is a bug which prevents building the native image under Linux with AWT, with more recent versions of Java.

Native configuration has been moved to the conventional src/main/resources/META-INF/native-image location. Although this isn't required for the JVM version, it simplifies the setup of the build.

This commit switches from Maven to Gradle for building the project.
It makes the instructions simpler, by using Gradle plugins:

- the `application` plugin exposes the `run` method directly for the
JVM version, without having to explain to grow the stack size
- the official GraalVM native plugin exposes the `nativeCompile`
and `nativeRun` tasks, respectively for building the native image
and executing it

In addition, this commit switches from using Java 19 to Java 11.
The underlying reason is a [bug](oracle/graal#4594 (comment))
which prevents building the native image under Linux with AWT,
with more recent versions of Java.

Native configuration has been moved to the conventional
`src/main/resources/META-INF/native-image` location. Although
this isn't required for the JVM version, it simplifies the setup
of the build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant