From bc12eee6612fc838961ca662804fd21b69deb720 Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Mon, 11 May 2020 18:00:20 +0100 Subject: [PATCH] Revert "HHH-13950 Update to Bean Validation 3 preview: Hibernate Validator 7.0.0.Alpha1" This reverts commit b9a24f458c6e9c5331b2362f58eb36e5c244de5e. --- gradle/libraries.gradle | 10 +++++----- .../hibernate/cfg/beanvalidation/ValidationMode.java | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gradle/libraries.gradle b/gradle/libraries.gradle index 5a036e1bec..54d0f3fa79 100644 --- a/gradle/libraries.gradle +++ b/gradle/libraries.gradle @@ -15,9 +15,9 @@ ext { jnpVersion = '5.0.6.CR1' hibernateCommonsVersion = '5.1.0.Final' - hibernateValidatorVersion = '7.0.0.Alpha1' // Preview of Jakarta EE 9 (Validation 3.0) - validationApiVersion = '3.0.0-M1' // Preview of Jakarta EE 9 (Validation 3.0) - elVersion = '4.0.0-RC1' // Preview of Jakarta EE 9 : dependency of Validation 3.0 + hibernateValidatorVersion = '6.0.13.Final' + validationApiVersion = '2.0.1.Final' + elVersion = '3.0.1-b09' cdiVersion = '2.0' weldVersion = '3.0.0.Final' @@ -68,7 +68,7 @@ ext { // javax jpa: "javax.persistence:javax.persistence-api:${project.jpaVersion}", jta: 'org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:1.1.1.Final', - validation: "jakarta.validation:jakarta.validation-api:${validationApiVersion}", + validation: "javax.validation:validation-api:${validationApiVersion}", jacc: 'org.jboss.spec.javax.security.jacc:jboss-jacc-api_1.4_spec:1.0.2.Final', interceptor: 'javax.interceptor:javax.interceptor-api:1.2', // required by JAXB from JDK 9 as it is not available anymore in JDK 9 @@ -130,7 +130,7 @@ ext { validator: "org.hibernate.validator:hibernate-validator:${hibernateValidatorVersion}", // EL required by Hibernate Validator at test runtime - expression_language: "org.glassfish:jakarta.el:${elVersion}", + expression_language: "org.glassfish:javax.el:${elVersion}", c3p0: "com.mchange:c3p0:0.9.5.3", ehcache: "net.sf.ehcache:ehcache:2.10.6", diff --git a/hibernate-core/src/main/java/org/hibernate/cfg/beanvalidation/ValidationMode.java b/hibernate-core/src/main/java/org/hibernate/cfg/beanvalidation/ValidationMode.java index 1aa1568ec0..8f7628c73f 100644 --- a/hibernate-core/src/main/java/org/hibernate/cfg/beanvalidation/ValidationMode.java +++ b/hibernate-core/src/main/java/org/hibernate/cfg/beanvalidation/ValidationMode.java @@ -13,7 +13,7 @@ import java.util.Set; import org.hibernate.HibernateException; /** - * Duplicates the jakarta.validation enum (because jakarta validation might not be on the runtime classpath) + * Duplicates the javax.validation enum (because javax validation might not be on the runtime classpath) * * @author Steve Ebersole */