From f2dda6565727560aa85c25abeaa1c297b6a9093b Mon Sep 17 00:00:00 2001 From: Rune Flobakk Date: Fri, 5 May 2023 11:07:52 +0200 Subject: [PATCH] Make Hibernate Validator optional dependency Not needed to use the library with digipost-api-client-java, and should be provided yourself if you wish to perform Bean validation on the created instances. --- NOTICE | 5 +++-- pom.xml | 31 ++++++++++++++++++++++++++----- 2 files changed, 29 insertions(+), 7 deletions(-) diff --git a/NOTICE b/NOTICE index 81ea620..ffe5cf0 100644 --- a/NOTICE +++ b/NOTICE @@ -12,16 +12,17 @@ specific language governing permissions and limitations under the License. This project includes: + Bean Validation API under Apache License 2.0 ClassMate under The Apache Software License, Version 2.0 Digipost Data Types under The Apache Software License, Version 2.0 Digipost JAXB Resolver - com.sun.xml.bind under The Apache Software License, Version 2.0 + Expression Language 3.0 API under CDDL + GPLv2 with classpath exception Hibernate Validator Engine under Apache License 2.0 Jackson datatype: JSR310 under The Apache Software License, Version 2.0 Jackson-annotations under The Apache Software License, Version 2.0 Jackson-core under The Apache Software License, Version 2.0 jackson-databind under The Apache Software License, Version 2.0 - Jakarta Bean Validation API under Apache License 2.0 - Jakarta Expression Language 3.0 under EPL 2.0 or GPL2 w/ CPE + Jakarta Expression Language 3.0 Implementation under EPL 2.0 or GPL2 w/ CPE JavaBeans Activation Framework API jar under CDDL/GPLv2+CE jaxb-api under CDDL 1.1 or GPL2 w/ CPE JBoss Logging 3 under Apache License, version 2.0 diff --git a/pom.xml b/pom.xml index 2a13df6..15a06bc 100644 --- a/pom.xml +++ b/pom.xml @@ -68,21 +68,42 @@ jackson-core - jakarta.validation - jakarta.validation-api - 2.0.2 + javax.validation + validation-api + 2.0.1.Final org.hibernate.validator hibernate-validator 6.1.5.Final runtime + true + + + jakarta.validation + jakarta.validation-api + + - org.glassfish - jakarta.el + com.sun.el + el-ri 3.0.4 runtime + true + + + jakarta.el + jakarta.el-api + + + + + javax.el + javax.el-api + 3.0.0 + runtime + true javax.xml.bind