Skip to content

Commit

Permalink
more lib version changes
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyajohnson authored and haileyajohnson committed Jun 8, 2023
1 parent b35a3c9 commit c61292a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions tds-platform/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ dependencies {
api "org.hibernate.validator:hibernate-validator:${depVersion.hibernateValidator}"
api "org.hibernate.validator:hibernate-validator-annotation-processor:${depVersion.hibernateValidator}"
api 'jakarta.el:jakarta.el-api'
runtime 'org.glassfish:javax.el:3.0.0'

// waterml stuff
api 'org.apache.xmlbeans:xmlbeans'
Expand Down
5 changes: 2 additions & 3 deletions tds/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@ dependencies {
'org.json:json'

// JSR 303 with Hibernate Validator, which is dragging in jboss logging
compile 'jakarta.validation:jakarta.validation-api'
compile 'org.hibernate.validator:hibernate-validator'
runtime 'jakarta.el:jakarta.el-api'
runtime 'org.hibernate.validator:hibernate-validator'
runtime 'org.glassfish:javax.el'
annotationProcessor "org.hibernate.validator:hibernate-validator-annotation-processor:${depVersion.hibernateValidator}"

// @Resource annotation (removed post Java 8)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import javax.validation.Validation;
import javax.validation.Validator;
import javax.validation.ValidatorFactory;
import org.hibernate.validator.messageinterpolation.ParameterMessageInterpolator;
import org.junit.BeforeClass;
import org.junit.Test;
import org.slf4j.Logger;
Expand All @@ -26,8 +25,7 @@ public class TestNcssParams {

@BeforeClass
public static void setUp() {
ValidatorFactory factory = Validation.byDefaultProvider().configure()
.messageInterpolator(new ParameterMessageInterpolator()).buildValidatorFactory();
ValidatorFactory factory = Validation.buildDefaultValidatorFactory();
validator = factory.getValidator();

Class c = NcssGridParamsBean.class;
Expand Down

0 comments on commit c61292a

Please sign in to comment.