mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-21 18:45:09 +00:00
update Validator to 9
This commit is contained in:
parent
cbad5bf4ae
commit
724212bd5d
@ -14,7 +14,8 @@ dependencies {
|
|||||||
implementation libs.c3p0
|
implementation libs.c3p0
|
||||||
|
|
||||||
testImplementation project( ':hibernate-testing' )
|
testImplementation project( ':hibernate-testing' )
|
||||||
testImplementation libs.validator
|
testImplementation jakartaLibs.validation
|
||||||
testRuntimeOnly jakartaLibs.el
|
testImplementation testLibs.validator
|
||||||
|
testRuntimeOnly testLibs.expressly
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
import jakarta.persistence.GeneratedValue;
|
import jakarta.persistence.GeneratedValue;
|
||||||
import jakarta.persistence.Id;
|
import jakarta.persistence.Id;
|
||||||
|
|
||||||
|
import jakarta.validation.constraints.NotBlank;
|
||||||
import org.hibernate.annotations.GenericGenerator;
|
import org.hibernate.annotations.GenericGenerator;
|
||||||
import org.hibernate.validator.constraints.NotBlank;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A testing entity for cases where the entity definition itself is irrelevant (testing JDBC connection semantics, etc).
|
* A testing entity for cases where the entity definition itself is irrelevant (testing JDBC connection semantics, etc).
|
||||||
|
@ -45,22 +45,19 @@ dependencies {
|
|||||||
compileOnly libs.jacksonXml
|
compileOnly libs.jacksonXml
|
||||||
compileOnly jdbcLibs.postgresql
|
compileOnly jdbcLibs.postgresql
|
||||||
|
|
||||||
// annotationProcessor project( ":annotation-descriptor-generator" )
|
|
||||||
compileOnly project( ":annotation-descriptor-generator" )
|
compileOnly project( ":annotation-descriptor-generator" )
|
||||||
|
|
||||||
testImplementation project(':hibernate-testing')
|
testImplementation project(':hibernate-testing')
|
||||||
testImplementation project(':hibernate-ant')
|
testImplementation project(':hibernate-ant')
|
||||||
testImplementation project(':hibernate-scan-jandex')
|
testImplementation project(':hibernate-scan-jandex')
|
||||||
|
|
||||||
// testImplementation testLibs.shrinkwrapApi
|
|
||||||
testImplementation testLibs.shrinkwrap
|
testImplementation testLibs.shrinkwrap
|
||||||
testImplementation testLibs.shrinkwrapDescriptors
|
testImplementation testLibs.shrinkwrapDescriptors
|
||||||
// testImplementation testLibs.shrinkwrapDescriptorsApi
|
|
||||||
testImplementation jakartaLibs.cdi
|
testImplementation jakartaLibs.cdi
|
||||||
testImplementation jakartaLibs.jacc
|
testImplementation jakartaLibs.jacc
|
||||||
testImplementation jakartaLibs.validation
|
testImplementation jakartaLibs.validation
|
||||||
testImplementation jakartaLibs.el
|
testImplementation testLibs.expressly
|
||||||
testImplementation( libs.validator ) {
|
testImplementation( testLibs.validator ) {
|
||||||
// for test runtime
|
// for test runtime
|
||||||
transitive = true
|
transitive = true
|
||||||
}
|
}
|
||||||
|
@ -23,13 +23,13 @@ dependencies {
|
|||||||
testImplementation jakartaLibs.validation
|
testImplementation jakartaLibs.validation
|
||||||
testImplementation libs.jandex
|
testImplementation libs.jandex
|
||||||
testImplementation libs.classmate
|
testImplementation libs.classmate
|
||||||
testImplementation libs.validator
|
testImplementation testLibs.validator
|
||||||
testImplementation 'org.dom4j:dom4j:2.1.3@jar'
|
testImplementation 'org.dom4j:dom4j:2.1.3@jar'
|
||||||
|
|
||||||
testImplementation jdbcLibs.postgresql
|
testImplementation jdbcLibs.postgresql
|
||||||
testImplementation jdbcLibs.h2gis
|
testImplementation jdbcLibs.h2gis
|
||||||
|
|
||||||
testRuntimeOnly jakartaLibs.el
|
testRuntimeOnly testLibs.expressly
|
||||||
testRuntimeOnly 'jaxen:jaxen:1.1'
|
testRuntimeOnly 'jaxen:jaxen:1.1'
|
||||||
testRuntimeOnly libs.byteBuddy
|
testRuntimeOnly libs.byteBuddy
|
||||||
}
|
}
|
||||||
|
@ -96,8 +96,6 @@ dependencyResolutionManagement {
|
|||||||
|
|
||||||
def micrometerVersion = version "micrometer", "1.14.1"
|
def micrometerVersion = version "micrometer", "1.14.1"
|
||||||
|
|
||||||
def hibernateValidatorVersion = version "hibernateValidator", "8.0.1.Final"
|
|
||||||
|
|
||||||
def antVersion = version "ant", "1.10.15"
|
def antVersion = version "ant", "1.10.15"
|
||||||
|
|
||||||
library( "antlr", "org.antlr", "antlr4" ).versionRef( antlrVersion )
|
library( "antlr", "org.antlr", "antlr4" ).versionRef( antlrVersion )
|
||||||
@ -118,7 +116,6 @@ dependencyResolutionManagement {
|
|||||||
library( "jackson", "com.fasterxml.jackson.core", "jackson-databind" ).versionRef( jacksonVersion )
|
library( "jackson", "com.fasterxml.jackson.core", "jackson-databind" ).versionRef( jacksonVersion )
|
||||||
library( "jacksonXml", "com.fasterxml.jackson.dataformat", "jackson-dataformat-xml" ).versionRef( jacksonVersion )
|
library( "jacksonXml", "com.fasterxml.jackson.dataformat", "jackson-dataformat-xml" ).versionRef( jacksonVersion )
|
||||||
library( "jacksonJsr310", "com.fasterxml.jackson.datatype", "jackson-datatype-jsr310" ).versionRef( jacksonVersion )
|
library( "jacksonJsr310", "com.fasterxml.jackson.datatype", "jackson-datatype-jsr310" ).versionRef( jacksonVersion )
|
||||||
library( "validator", "org.hibernate.validator", "hibernate-validator" ).versionRef( hibernateValidatorVersion )
|
|
||||||
|
|
||||||
library( "agroal", "io.agroal", "agroal-api" ).versionRef( agroalVersion )
|
library( "agroal", "io.agroal", "agroal-api" ).versionRef( agroalVersion )
|
||||||
library( "agroalPool", "io.agroal", "agroal-pool" ).versionRef( agroalVersion )
|
library( "agroalPool", "io.agroal", "agroal-pool" ).versionRef( agroalVersion )
|
||||||
@ -145,7 +142,6 @@ dependencyResolutionManagement {
|
|||||||
|
|
||||||
def annotationVersion = version "annotation", "3.0.0"
|
def annotationVersion = version "annotation", "3.0.0"
|
||||||
def cdiVersion = version "cdi", "4.1.0"
|
def cdiVersion = version "cdi", "4.1.0"
|
||||||
def elVersion = version "el", "5.0.0"
|
|
||||||
def injectVersion = version "inject", "2.0.1"
|
def injectVersion = version "inject", "2.0.1"
|
||||||
def interceptorsVersion = version "interceptors", "2.2.0"
|
def interceptorsVersion = version "interceptors", "2.2.0"
|
||||||
def dataVersion = version "data", "1.0.1"
|
def dataVersion = version "data", "1.0.1"
|
||||||
@ -173,7 +169,6 @@ dependencyResolutionManagement {
|
|||||||
library( "jaxbApi", "jakarta.xml.bind", "jakarta.xml.bind-api" ).versionRef( jaxbApiVersion )
|
library( "jaxbApi", "jakarta.xml.bind", "jakarta.xml.bind-api" ).versionRef( jaxbApiVersion )
|
||||||
library( "jaxb", "org.glassfish.jaxb", "jaxb-runtime" ).versionRef( jaxbRuntimeVersion )
|
library( "jaxb", "org.glassfish.jaxb", "jaxb-runtime" ).versionRef( jaxbRuntimeVersion )
|
||||||
library( "xjc", "org.glassfish.jaxb", "jaxb-xjc" ).versionRef( xjcVersion )
|
library( "xjc", "org.glassfish.jaxb", "jaxb-xjc" ).versionRef( xjcVersion )
|
||||||
library( "el", "org.glassfish.expressly", "expressly" ).versionRef( elVersion )
|
|
||||||
}
|
}
|
||||||
testLibs {
|
testLibs {
|
||||||
def junit5Version = version "junit5", "5.11.3"
|
def junit5Version = version "junit5", "5.11.3"
|
||||||
@ -194,6 +189,12 @@ dependencyResolutionManagement {
|
|||||||
|
|
||||||
def jfrUnitVersion = version "jfrUnit", "1.0.0.Alpha2"
|
def jfrUnitVersion = version "jfrUnit", "1.0.0.Alpha2"
|
||||||
|
|
||||||
|
def hibernateValidatorVersion = version "hibernateValidator", "9.0.0.Beta3"
|
||||||
|
def expresslyVersion = version "expressly", "6.0.0-M1"
|
||||||
|
|
||||||
|
library( "validator", "org.hibernate.validator", "hibernate-validator" ).versionRef( hibernateValidatorVersion )
|
||||||
|
library( "expressly", "org.glassfish.expressly", "expressly" ).versionRef( expresslyVersion )
|
||||||
|
|
||||||
library( "junit5Api", "org.junit.jupiter", "junit-jupiter-api" ).versionRef( junit5Version )
|
library( "junit5Api", "org.junit.jupiter", "junit-jupiter-api" ).versionRef( junit5Version )
|
||||||
library( "junit5Engine", "org.junit.jupiter", "junit-jupiter-engine" ).versionRef( junit5Version )
|
library( "junit5Engine", "org.junit.jupiter", "junit-jupiter-engine" ).versionRef( junit5Version )
|
||||||
library( "junit5Params", "org.junit.jupiter", "junit-jupiter-params" ).versionRef( junit5Version )
|
library( "junit5Params", "org.junit.jupiter", "junit-jupiter-params" ).versionRef( junit5Version )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user