Skip to content

Commit

Permalink
Upgrade to Hibernate Validator 9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marko-bekhta committed Aug 2, 2024
1 parent 459ea4e commit b214566
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<bouncycastle.version>1.78.1</bouncycastle.version>
<bouncycastle.fips.version>1.0.2.5</bouncycastle.fips.version>
<bouncycastle.tls.fips.version>1.0.19</bouncycastle.tls.fips.version>
<expressly.version>5.0.0</expressly.version>
<expressly.version>6.0.0-M1</expressly.version>
<findbugs.version>3.0.2</findbugs.version>
<jandex.version>3.2.1</jandex.version>
<javax.annotation-api.version>1.3.2</javax.annotation-api.version>
Expand Down Expand Up @@ -68,7 +68,7 @@
<jakarta.annotation-api.version>3.0.0</jakarta.annotation-api.version>
<jakarta.authentication-api>3.0.0</jakarta.authentication-api>
<jakarta.authorization-api.version>2.1.0</jakarta.authorization-api.version>
<jakarta.el-api.version>5.0.1</jakarta.el-api.version>
<jakarta.el-api.version>6.0.1</jakarta.el-api.version>
<jakarta.enterprise.cdi-api.version>4.1.0</jakarta.enterprise.cdi-api.version>
<jakarta.inject-api.version>2.0.1</jakarta.inject-api.version>
<jakarta.interceptor-api.version>2.2.0</jakarta.interceptor-api.version>
Expand All @@ -79,7 +79,7 @@
<jakarta.resource-api.version>2.1.0</jakarta.resource-api.version>
<jakarta.servlet-api.version>6.0.0</jakarta.servlet-api.version>
<jakarta.transaction-api.version>2.0.1</jakarta.transaction-api.version>
<jakarta.validation-api.version>3.0.2</jakarta.validation-api.version>
<jakarta.validation-api.version>3.1.0</jakarta.validation-api.version>
<jakarta.websocket-api.version>2.1.1</jakarta.websocket-api.version>
<jakarta.ws.rs-api.version>3.1.0</jakarta.ws.rs-api.version>
<jakarta.xml.bind-api.version>4.0.2</jakarta.xml.bind-api.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import jakarta.validation.ConstraintValidator;
import jakarta.validation.ConstraintValidatorFactory;

import org.hibernate.validator.internal.util.privilegedactions.NewInstance;
import org.hibernate.validator.internal.util.actions.NewInstance;

import io.quarkus.arc.Arc;
import io.quarkus.arc.InstanceHandle;
Expand All @@ -32,7 +32,7 @@ public class ArcConstraintValidatorFactoryImpl implements ConstraintValidatorFac
}
return instance;
}
return NewInstance.action(key, "ConstraintValidator").run();
return NewInstance.action(key, "ConstraintValidator");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import org.hibernate.validator.PredefinedScopeHibernateValidator;
import org.hibernate.validator.PredefinedScopeHibernateValidatorConfiguration;
import org.hibernate.validator.internal.engine.constraintvalidation.ConstraintValidatorFactoryImpl;
import org.hibernate.validator.constraintvalidation.spi.DefaultConstraintValidatorFactory;

import io.smallrye.config.validator.BeanValidationConfigValidator;

Expand All @@ -24,7 +24,7 @@ public HibernateBeanValidationConfigValidator(Set<String> constraints, Set<Class
.ignoreXmlConfiguration()
.builtinConstraints(constraints)
.initializeBeanMetaData(classesToBeValidated)
.constraintValidatorFactory(new ConstraintValidatorFactoryImpl());
.constraintValidatorFactory(new DefaultConstraintValidatorFactory());

ConfigValidatorHolder.initialize(configuration.buildValidatorFactory());
}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<bytebuddy.version>1.14.15</bytebuddy.version> <!-- version controlled by Hibernate ORM's needs -->
<hibernate-commons-annotations.version>6.0.6.Final</hibernate-commons-annotations.version> <!-- version controlled by Hibernate ORM's needs -->
<hibernate-reactive.version>2.3.1.Final</hibernate-reactive.version> <!-- highly sensitive to Hibernate ORM upgrades -->
<hibernate-validator.version>8.0.1.Final</hibernate-validator.version>
<hibernate-validator.version>9.0.0.Beta2</hibernate-validator.version>
<hibernate-search.version>7.1.1.Final</hibernate-search.version>

<!-- Make sure to check compatibility between these 2 gRPC components before upgrade -->
Expand Down

0 comments on commit b214566

Please sign in to comment.