This is an automated email from the ASF dual-hosted git repository.
jamesfredley pushed a commit to branch 8.0.x-stage-hibernate7
in repository https://gitbox.apache.org/repos/asf/grails-core.git
The following commit(s) were added to refs/heads/8.0.x-stage-hibernate7 by this
push:
new 09f395c48d Fix hibernate5Version property references in
grails-test-examples/graphql
09f395c48d is described below
commit 09f395c48d01fcab46fea099cdac7e5f3d6e6202
Author: James Fredley <[email protected]>
AuthorDate: Fri May 22 13:52:51 2026 -0400
Fix hibernate5Version property references in grails-test-examples/graphql
The hibernate7 stage branch removed the hibernate5Version project property
from gradle.properties (commit ac0f947d8) in favor of letting BOM platforms
resolve hibernate versions. After the merge from 8.0.x brought the renamed
grails-test-examples/graphql/* apps into this branch, their build files
still referenced "$hibernate5Version" directly and broke configuration
across every CI job (validate-deps, code style, code analysis, rat-audit,
codeql, all build + functional + mongo + hibernate5/7 test matrices,
groovy-joint build).
Drop the explicit version from the hibernate-core-jakarta and
hibernate-ehcache coordinates and let `implementation
platform(project(':grails-bom'))` (already declared in every affected
file) supply the version, matching the pattern used in
grails-data-hibernate5/core/build.gradle and the other test-example
modules under grails-test-examples/.
Assisted-by: claude-code:claude-4.7-opus
---
grails-test-examples/graphql/grails-docs-app/build.gradle | 2 +-
grails-test-examples/graphql/grails-multi-datastore-app/build.gradle | 2 +-
grails-test-examples/graphql/grails-tenant-app/build.gradle | 2 +-
grails-test-examples/graphql/grails-test-app/build.gradle | 2 +-
grails-test-examples/graphql/spring-boot-app/build.gradle | 4 ++--
5 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/grails-test-examples/graphql/grails-docs-app/build.gradle
b/grails-test-examples/graphql/grails-docs-app/build.gradle
index b9cfdb411e..2e6c914004 100644
--- a/grails-test-examples/graphql/grails-docs-app/build.gradle
+++ b/grails-test-examples/graphql/grails-docs-app/build.gradle
@@ -53,7 +53,7 @@ dependencies {
implementation 'org.apache.grails:grails-views-gson'
implementation 'org.apache.grails:grails-data-mongodb-gson-templates'
- implementation "org.hibernate:hibernate-core-jakarta:$hibernate5Version"
+ implementation 'org.hibernate:hibernate-core-jakarta'
implementation
"io.micronaut.rxjava2:micronaut-rxjava2-http-client:$micronautRxjava2Version"
// JSON mapper for the micronaut HTTP client used by the GraphQLSpec trait.
implementation
"io.micronaut.serde:micronaut-serde-jackson:$micronautSerdeJacksonVersion"
diff --git
a/grails-test-examples/graphql/grails-multi-datastore-app/build.gradle
b/grails-test-examples/graphql/grails-multi-datastore-app/build.gradle
index 74d697bc1d..e3c7f5eced 100644
--- a/grails-test-examples/graphql/grails-multi-datastore-app/build.gradle
+++ b/grails-test-examples/graphql/grails-multi-datastore-app/build.gradle
@@ -53,7 +53,7 @@ dependencies {
implementation 'org.apache.grails:grails-views-gson'
implementation 'org.apache.grails:grails-data-mongodb-gson-templates'
- implementation "org.hibernate:hibernate-core-jakarta:$hibernate5Version"
+ implementation 'org.hibernate:hibernate-core-jakarta'
implementation 'com.graphql-java:graphql-java'
implementation
"io.micronaut.rxjava2:micronaut-rxjava2-http-client:$micronautRxjava2Version"
// JSON mapper for the micronaut HTTP client used by the GraphQLSpec trait.
diff --git a/grails-test-examples/graphql/grails-tenant-app/build.gradle
b/grails-test-examples/graphql/grails-tenant-app/build.gradle
index b9cfdb411e..2e6c914004 100644
--- a/grails-test-examples/graphql/grails-tenant-app/build.gradle
+++ b/grails-test-examples/graphql/grails-tenant-app/build.gradle
@@ -53,7 +53,7 @@ dependencies {
implementation 'org.apache.grails:grails-views-gson'
implementation 'org.apache.grails:grails-data-mongodb-gson-templates'
- implementation "org.hibernate:hibernate-core-jakarta:$hibernate5Version"
+ implementation 'org.hibernate:hibernate-core-jakarta'
implementation
"io.micronaut.rxjava2:micronaut-rxjava2-http-client:$micronautRxjava2Version"
// JSON mapper for the micronaut HTTP client used by the GraphQLSpec trait.
implementation
"io.micronaut.serde:micronaut-serde-jackson:$micronautSerdeJacksonVersion"
diff --git a/grails-test-examples/graphql/grails-test-app/build.gradle
b/grails-test-examples/graphql/grails-test-app/build.gradle
index 9213618f44..abcea413a1 100644
--- a/grails-test-examples/graphql/grails-test-app/build.gradle
+++ b/grails-test-examples/graphql/grails-test-app/build.gradle
@@ -53,7 +53,7 @@ dependencies {
implementation 'org.apache.grails:grails-views-gson'
implementation 'org.apache.grails:grails-data-mongodb-gson-templates'
- implementation "org.hibernate:hibernate-core-jakarta:$hibernate5Version"
+ implementation 'org.hibernate:hibernate-core-jakarta'
implementation 'com.graphql-java:graphql-java'
implementation
"io.micronaut.rxjava2:micronaut-rxjava2-http-client:$micronautRxjava2Version"
// JSON mapper for the micronaut HTTP client used by the GraphQLSpec trait.
diff --git a/grails-test-examples/graphql/spring-boot-app/build.gradle
b/grails-test-examples/graphql/spring-boot-app/build.gradle
index 0dc9e9eb53..cb11d1609b 100644
--- a/grails-test-examples/graphql/spring-boot-app/build.gradle
+++ b/grails-test-examples/graphql/spring-boot-app/build.gradle
@@ -42,8 +42,8 @@ dependencies {
implementation 'org.apache.grails:grails-data-hibernate5-spring-boot'
implementation 'org.apache.grails.data:grails-data-hibernate5-core'
implementation 'org.apache.grails.data:grails-datamapping-core'
- implementation "org.hibernate:hibernate-core-jakarta:$hibernate5Version"
- implementation("org.hibernate:hibernate-ehcache:$hibernate5Version") {
+ implementation 'org.hibernate:hibernate-core-jakarta'
+ implementation('org.hibernate:hibernate-ehcache') {
// Exclude javax variant of hibernate-core
exclude group: 'org.hibernate', module: 'hibernate-core'
}