From 6efab04cd58e93de1447d2f8ee59c2361ae3d5d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Stra=C3=9Fer?= Date: Mon, 19 Apr 2021 16:00:05 +0200 Subject: [PATCH] changed java version to 16 --- README.md | 2 +- adapter/addressvalidation/pom.xml | 2 +- adapter/persistence/pom.xml | 6 +++--- adapter/web/pom.xml | 6 +++--- application/pom.xml | 6 +++--- .../customer/validator/SecurePassword.java | 13 +++++++------ common/pom.xml | 2 +- config/pom.xml | 6 +++--- pom.xml | 6 ++++-- 9 files changed, 26 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 5281bf5..a275b75 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Most of the information on how to design in this way are from the following book ### Prerequisites -* Java 11 +* Java 16 * Maven * Docker or mongoDB diff --git a/adapter/addressvalidation/pom.xml b/adapter/addressvalidation/pom.xml index 50fb456..86ea71a 100644 --- a/adapter/addressvalidation/pom.xml +++ b/adapter/addressvalidation/pom.xml @@ -14,7 +14,7 @@ Adapter to call validate addresses in external systems - 14 + 16 diff --git a/adapter/persistence/pom.xml b/adapter/persistence/pom.xml index d6a0bf0..d0e5174 100644 --- a/adapter/persistence/pom.xml +++ b/adapter/persistence/pom.xml @@ -15,7 +15,7 @@ jar - 14 + 16 @@ -63,8 +63,8 @@ maven-compiler-plugin 3.8.1 - 14 - 14 + 16 + 16 org.mapstruct diff --git a/adapter/web/pom.xml b/adapter/web/pom.xml index bf3b11f..9270803 100644 --- a/adapter/web/pom.xml +++ b/adapter/web/pom.xml @@ -18,7 +18,7 @@ Web adapter - 14 + 16 @@ -65,8 +65,8 @@ maven-compiler-plugin 3.8.1 - 14 - 14 + 16 + 16 org.mapstruct diff --git a/application/pom.xml b/application/pom.xml index c9d56de..d7a6337 100644 --- a/application/pom.xml +++ b/application/pom.xml @@ -16,7 +16,7 @@ Business logic for demo project - 14 + 16 @@ -60,8 +60,8 @@ maven-compiler-plugin 3.8.1 - 14 - 14 + 16 + 16 org.mapstruct diff --git a/application/src/main/java/de/strasser/peter/hexagonal/application/customer/validator/SecurePassword.java b/application/src/main/java/de/strasser/peter/hexagonal/application/customer/validator/SecurePassword.java index 8155ba8..3053d3e 100644 --- a/application/src/main/java/de/strasser/peter/hexagonal/application/customer/validator/SecurePassword.java +++ b/application/src/main/java/de/strasser/peter/hexagonal/application/customer/validator/SecurePassword.java @@ -21,12 +21,13 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME; public @interface SecurePassword { String message() default - "# a digit must occur at least once\n" - + "# a lower case letter must occur at least once\n" - + "# an upper case letter must occur at least once\n" - + "# a special character must occur at least once ( one of !@#$%^&*(),.?\":{}|<>) \n" - + "# no whitespace allowed in the entire string\n" - + "# anything, at least eight places though"; + """ + # a digit must occur at least once + # a lower case letter must occur at least once + # an upper case letter must occur at least once + # a special character must occur at least once ( one of !@#$%^&*(),.?":{}|<>)\s + # no whitespace allowed in the entire string + # at least eight places"""; Class[] groups() default {}; diff --git a/common/pom.xml b/common/pom.xml index 505dd2d..1550e5b 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -15,7 +15,7 @@ common - 14 + 16 diff --git a/config/pom.xml b/config/pom.xml index bd720fb..e6b711e 100644 --- a/config/pom.xml +++ b/config/pom.xml @@ -16,9 +16,9 @@ Cross cutting concerns for the application - 14 - 14 - 14 + 16 + 16 + 16 diff --git a/pom.xml b/pom.xml index 2996ba1..7c580f4 100644 --- a/pom.xml +++ b/pom.xml @@ -12,10 +12,12 @@ Demo project for hexagonal architecture UTF-8 - 14 + 16 + 16 + 16 2.4.5 1.4.2.Final - 1.18.16 + 1.18.20 0.2.0 2.4.4 0.0.1-SNAPSHOT