From b07cfeda83a681dd465fb646a90ca7a1a8e15889 Mon Sep 17 00:00:00 2001 From: "Ganesh Tiwari(gtiwari333)" Date: Thu, 7 Dec 2023 14:18:56 -0600 Subject: [PATCH 1/2] new versions --- .mvn/wrapper/maven-wrapper.properties | 18 +----------------- pom.xml | 27 +++++++++++++-------------- src/main/java/gt/app/PojoA.java | 8 +------- 3 files changed, 15 insertions(+), 38 deletions(-) diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties index 281ebbf..5f0536e 100644 --- a/.mvn/wrapper/maven-wrapper.properties +++ b/.mvn/wrapper/maven-wrapper.properties @@ -1,18 +1,2 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.1/apache-maven-3.9.1-bin.zip +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar diff --git a/pom.xml b/pom.xml index b14b9a4..7bf7a73 100644 --- a/pom.xml +++ b/pom.xml @@ -15,8 +15,8 @@ UTF-8 UTF-8 - 1.5.2.Final - 1.18.26 + 1.5.5.Final + 1.18.30 2.4-M1-groovy-4.0 @@ -31,31 +31,30 @@ 3.10.1 - 3.0.0-M8 - 3.0.0-M8 + 3.2.2 + 3.2.2 4.9.10 - 1.0.1 - 3.9.1.2184 + 1.2.1 + 3.10.0.2594 0.8.9 3.2.2 - 10.9.3 + 10.12.6 2.18.0 - 2.1.0 - 2.6.0 - 4.7.3.4 + 3.0.2 + 2.7.0 + 4.8.2.0 1.12.0 7.6.0 - 8.2.1 + 9.0.3 org.slf4j slf4j-simple - 2.0.7 com.google.code.findbugs @@ -102,7 +101,7 @@ org.springframework.boot spring-boot-starter-parent - 3.0.6 + 3.2.0 pom import @@ -144,7 +143,7 @@ com.uber.nullaway nullaway - 0.10.10 + 0.10.18 diff --git a/src/main/java/gt/app/PojoA.java b/src/main/java/gt/app/PojoA.java index aff380e..a60749e 100644 --- a/src/main/java/gt/app/PojoA.java +++ b/src/main/java/gt/app/PojoA.java @@ -2,21 +2,15 @@ import lombok.Data; -import javax.annotation.Nullable; - @Data public class PojoA { - @Nullable String firstName; - @Nullable String lastName; int age; - @Nullable String country; - @Nullable String language; - public PojoA(@Nullable String firstName, int age) { + public PojoA(String firstName, int age) { this.firstName = firstName; this.age = age; } From 01dc0c76f8d4527eb9e1149f7c318e9890e838a2 Mon Sep 17 00:00:00 2001 From: "Ganesh Tiwari(gtiwari333)" Date: Thu, 7 Dec 2023 14:19:26 -0600 Subject: [PATCH 2/2] 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; +}