From 01dc0c76f8d4527eb9e1149f7c318e9890e838a2 Mon Sep 17 00:00:00 2001 From: "Ganesh Tiwari(gtiwari333)" Date: Thu, 7 Dec 2023 14:19:26 -0600 Subject: [PATCH] jlink --- pom.xml | 26 +++++++++++++++++++++----- src/main/java/module-info.java | 5 +++++ 2 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 src/main/java/module-info.java diff --git a/pom.xml b/pom.xml index 7bf7a73..f41000d 100644 --- a/pom.xml +++ b/pom.xml @@ -56,11 +56,13 @@ org.slf4j slf4j-simple + org.projectlombok lombok @@ -111,7 +113,18 @@ ${project.version}-app - + + org.apache.maven.plugins + maven-jlink-plugin + 3.1.0 + + true + true + true + 2 + true + + org.apache.maven.plugins maven-compiler-plugin @@ -123,8 +136,9 @@ -Xlint:all,-options -Xdoclint:all/protected -XDcompilePolicy=simple - -Xplugin:ErrorProne -Xep:NullAway:ERROR -XepOpt:NullAway:AnnotatedPackages=gt.app - + -Amapstruct.defaultComponentModel=default -Amapstruct.defaultInjectionStrategy=constructor @@ -135,16 +149,18 @@ error_prone_core ${google.error-prone.compiler.version} - + org.projectlombok lombok ${lombok.version} - + + diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java new file mode 100644 index 0000000..3b81f9e --- /dev/null +++ b/src/main/java/module-info.java @@ -0,0 +1,5 @@ +module appDeps { + requires java.base; + requires static lombok; + requires org.slf4j; +}