From ea04fc19fb7a5520dce7d4664f5e2d857be4fa9e Mon Sep 17 00:00:00 2001 From: Konrad Neitzel Date: Tue, 8 Nov 2022 14:13:12 +0100 Subject: [PATCH 1/2] Added Profiles for JLink / JPackage Updated dependencies. --- README.md | 8 ++ pom.xml | 314 +++++++++++++++++++++++++++++------------------------- 2 files changed, 175 insertions(+), 147 deletions(-) diff --git a/README.md b/README.md index 72cfeca..7347e4c 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,11 @@ This project includes: - static code analysis with PMD and spotbugs - Creation of image (JLink) and app-image (JPackage) - Creation of native binary (GraalVM) + +Create native executable with GraalVM use one of these: +mvnw -PGraalVM package +mvnw -DGraalVM package + +Create image (JLink and JPackage): +mvnw -PImage package +mvnw -DImage package \ No newline at end of file diff --git a/pom.xml b/pom.xml index 03412d8..694d0a9 100644 --- a/pom.xml +++ b/pom.xml @@ -26,8 +26,8 @@ 23.0.0 5.9.1 1.18.24 - 6.49.0 - 4.7.2 + 6.51.0 + 4.7.3 2.11.0 @@ -54,41 +54,6 @@ - - - native - - - - org.graalvm.buildtools - native-maven-plugin - ${native.maven.plugin} - true - - - build-native - - compile-no-fork - - package - - - test-native - - test - - test - - - - ${appName} - ${main.class} - - - - - - @@ -173,116 +138,6 @@ - - - org.apache.maven.plugins - maven-dependency-plugin - ${maven.dependency.plugin} - - - copy-dependencies - package - - copy-dependencies - - - ${project.build.directory}/modules - false - false - true - - - - - - - - org.moditect - moditect-maven-plugin - ${moditect.maven.plugin} - - - add-module-info-to-dependencies - package - - ${project.build.directory}/modules - true - - - - - - ${main.class} - ${project.build.sourceDirectory}/module-info.java - - - - --ignore-missing-deps - - - - add-module-info - - - - create-runtime-image - package - - create-runtime-image - - - - ${project.build.directory}/modules - - - ${main.module} - - - ${launcher} - ${main.module} - - 2 - true - ${project.build.directory}/jlink-image - APP_WITH_DEPENDENCIES - - - - - - - - com.github.akman - jpackage-maven-plugin - ${jpackage.maven.plugin} - - - package - - jpackage - - - ${appName} - IMAGE - ${project.build.directory}/jlink-image - ${main.module}/${main.class} - - - - - com.github.spotbugs @@ -423,4 +278,169 @@ + + + + GraalVM + + + GraalVM + + + + + + org.graalvm.buildtools + native-maven-plugin + ${native.maven.plugin} + true + + + build-native + + compile-no-fork + + package + + + test-native + + test + + test + + + + ${appName} + ${main.class} + + + + + + + + Image + + + Image + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + ${maven.dependency.plugin} + + + copy-dependencies + package + + copy-dependencies + + + ${project.build.directory}/modules + false + false + true + + + + + + + + org.moditect + moditect-maven-plugin + ${moditect.maven.plugin} + + + add-module-info-to-dependencies + package + + ${project.build.directory}/modules + true + + + + + + ${main.class} + ${project.build.sourceDirectory}/module-info.java + + + + --ignore-missing-deps + + + + add-module-info + + + + create-runtime-image + package + + create-runtime-image + + + + ${project.build.directory}/modules + + + ${main.module} + + + ${launcher} + ${main.module} + + 2 + true + ${project.build.directory}/jlink-image + APP_WITH_DEPENDENCIES + + + + + + + + com.github.akman + jpackage-maven-plugin + ${jpackage.maven.plugin} + + + package + + jpackage + + + ${appName} + IMAGE + ${project.build.directory}/jlink-image + ${main.module}/${main.class} + + + + + + + + + + From 0c44e51682f910b9225b652cdaffd2fa348f6bea Mon Sep 17 00:00:00 2001 From: Konrad Neitzel Date: Tue, 8 Nov 2022 14:14:27 +0100 Subject: [PATCH 2/2] Updated README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7347e4c..4a1a595 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,9 @@ This project includes: - Creation of native binary (GraalVM) Create native executable with GraalVM use one of these: -mvnw -PGraalVM package -mvnw -DGraalVM package +- ./mvnw -PGraalVM package +- ./mvnw -DGraalVM package Create image (JLink and JPackage): -mvnw -PImage package -mvnw -DImage package \ No newline at end of file +- ./mvnw -PImage package +- ./mvnw -DImage package \ No newline at end of file