Skip to content

Commit 58d2239

Browse files
marko-bekhtabeikov
authored andcommitted
Do not rely on expressly for Hibernate Validator message interpolation
1 parent 4b52bff commit 58d2239

File tree

7 files changed

+45
-5
lines changed

7 files changed

+45
-5
lines changed

hibernate-c3p0/hibernate-c3p0.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,5 @@ dependencies {
1616
testImplementation project( ':hibernate-testing' )
1717
testImplementation jakartaLibs.validation
1818
testImplementation testLibs.validator
19-
testRuntimeOnly testLibs.expressly
2019
}
2120

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!--
2+
~ Hibernate, Relational Persistence for Idiomatic Java
3+
~
4+
~ License: GNU Lesser General Public License (LGPL), version 2.1 or later.
5+
~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
6+
-->
7+
<validation-config
8+
xmlns="https://jakarta.ee/xml/ns/validation/configuration"
9+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:schemaLocation="https://jakarta.ee/xml/ns/validation/configuration
11+
https://jakarta.ee/xml/ns/validation/validation-configuration-3.0.xsd"
12+
version="3.0">
13+
14+
<message-interpolator>org.hibernate.validator.messageinterpolation.ParameterMessageInterpolator</message-interpolator>
15+
</validation-config>

hibernate-core/hibernate-core.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ dependencies {
5656
testImplementation jakartaLibs.cdi
5757
testImplementation jakartaLibs.jacc
5858
testImplementation jakartaLibs.validation
59-
testImplementation testLibs.expressly
6059
testImplementation( testLibs.validator ) {
6160
// for test runtime
6261
transitive = true
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!--
2+
~ Hibernate, Relational Persistence for Idiomatic Java
3+
~
4+
~ License: GNU Lesser General Public License (LGPL), version 2.1 or later.
5+
~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
6+
-->
7+
<validation-config
8+
xmlns="https://jakarta.ee/xml/ns/validation/configuration"
9+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:schemaLocation="https://jakarta.ee/xml/ns/validation/configuration
11+
https://jakarta.ee/xml/ns/validation/validation-configuration-3.0.xsd"
12+
version="3.0">
13+
14+
<message-interpolator>org.hibernate.validator.messageinterpolation.ParameterMessageInterpolator</message-interpolator>
15+
</validation-config>

hibernate-spatial/hibernate-spatial.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ dependencies {
2929
testImplementation jdbcLibs.postgresql
3030
testImplementation jdbcLibs.h2gis
3131

32-
testRuntimeOnly testLibs.expressly
3332
testRuntimeOnly 'jaxen:jaxen:1.1'
3433
testRuntimeOnly libs.byteBuddy
3534
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!--
2+
~ Hibernate, Relational Persistence for Idiomatic Java
3+
~
4+
~ License: GNU Lesser General Public License (LGPL), version 2.1 or later.
5+
~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
6+
-->
7+
<validation-config
8+
xmlns="https://jakarta.ee/xml/ns/validation/configuration"
9+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:schemaLocation="https://jakarta.ee/xml/ns/validation/configuration
11+
https://jakarta.ee/xml/ns/validation/validation-configuration-3.0.xsd"
12+
version="3.0">
13+
14+
<message-interpolator>org.hibernate.validator.messageinterpolation.ParameterMessageInterpolator</message-interpolator>
15+
</validation-config>

settings.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,8 @@ dependencyResolutionManagement {
186186
def jfrUnitVersion = version "jfrUnit", "1.0.0.Alpha2"
187187

188188
def hibernateValidatorVersion = version "hibernateValidator", "9.0.0.Beta3"
189-
def expresslyVersion = version "expressly", "6.0.0-M1"
190189

191190
library( "validator", "org.hibernate.validator", "hibernate-validator" ).versionRef( hibernateValidatorVersion )
192-
library( "expressly", "org.glassfish.expressly", "expressly" ).versionRef( expresslyVersion )
193191

194192
library( "junit5Api", "org.junit.jupiter", "junit-jupiter-api" ).versionRef( junit5Version )
195193
library( "junit5Engine", "org.junit.jupiter", "junit-jupiter-engine" ).versionRef( junit5Version )

0 commit comments

Comments
 (0)