Skip to content

Commit

Permalink
Make Hibernate Validator optional dependency
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
runeflobakk committed May 5, 2023
1 parent 5265ce3 commit f2dda65
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
5 changes: 3 additions & 2 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
31 changes: 26 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,42 @@
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
<groupId>jakarta.validation</groupId>
<artifactId>jakarta.validation-api</artifactId>
<version>2.0.2</version>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>2.0.1.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
<version>6.1.5.Final</version>
<scope>runtime</scope>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>jakarta.validation</groupId>
<artifactId>jakarta.validation-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>jakarta.el</artifactId>
<groupId>com.sun.el</groupId>
<artifactId>el-ri</artifactId>
<version>3.0.4</version>
<scope>runtime</scope>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>jakarta.el</groupId>
<artifactId>jakarta.el-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>javax.el</groupId>
<artifactId>javax.el-api</artifactId>
<version>3.0.0</version>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
Expand Down

0 comments on commit f2dda65

Please sign in to comment.