Skip to content

Backport Grails Bom Restructure from Hibernate 7 branch - #15605

Merged
jdaugherty merged 21 commits into
7.0.xfrom
grailsBomRestructure
Apr 28, 2026
Merged

jdaugherty merged 21 commits into
7.0.xfrom
grailsBomRestructure

Conversation

@jdaugherty

Copy link
Copy Markdown
Contributor

One of the critical changes I added in the Hibernate 7 branch was a restructuring of the bom. As part of this, it's now possible to use the bom and set the hibernate5 version correctly. Given the size of the hibernate7 branch, I decided to split this off. Upon further investigation, I found dependency mismatches from the Spring Boot update so I decided to back port this all the way to 7.0.x.

Note: I had to "duplicate" the grails-bom & grails-hibernate5-bom definitions because inheriting doesn't allow Gradle to resolve the same way. I could publish 2 project names from grails-hibernate5-bom but I chose to just duplicate instead.

@matrei @jamesfredley given that these versions are mismatching after the recent boot update, I think we have to backport this. I view this change as a bug fix since it makes the bom work like you would expect. I want to commit to 7.0.x, and merge all the way up. Then we can also take advantage of this in the graphql & other PRs. Also, it will reduce the scope of the hibernate 7 PR that has to be reviewed.

@jdaugherty

Copy link
Copy Markdown
Contributor Author

For micronaut, given that we have an open ticket on the netty incompatibilties, I just added a "skip" option for validation to those projects. (I don't want to pull in tomcat 11 in spring 3.x, netty 4.2.x, etc)

@jdaugherty

Copy link
Copy Markdown
Contributor Author

I forgot to pull forward the forge changes, will do that later today

@jdaugherty

Copy link
Copy Markdown
Contributor Author

i tried several solutions for micronaut, but the only one that i can find that works reliably is a dedicated bom. Otherwise users have to override manually

@jdaugherty

Copy link
Copy Markdown
Contributor Author

I opened:
apache/grails-gradle-publish#26
apache/grails-gradle-publish#27

To fix the version resolution logic that I put in PublishPlugin. Once those are merged, that logic can be removed.

@jamesfredley jamesfredley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BOM_PROJECT_NAMES = ['grails-bom', 'grails-gradle-bom'] is missing the new BOMs
File: GrailsDependencyValidatorPlugin.groovy:57

@jdaugherty
jdaugherty requested a review from matrei April 27, 2026 17:45

@sbglasius sbglasius left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.
Not sure I understood all the gradle logic though. 😉

@testlens-app

testlens-app Bot commented Apr 28, 2026 •

Copy link
Copy Markdown

🚨 TestLens detected 1 failed tests 🚨

Here is what you can do:

  1. Inspect the test failures carefully.
  2. If you are convinced that some of the tests are flaky, you can mute them below.
  3. Finally, trigger a rerun by checking the rerun checkbox.

Test Summary

Check Project/Task Test Runs
CI / Functional Tests (25) :grails-test-examples-scaffolding:integrationTest UserControllerSpec > User list ❌

🏷️ Commit: caa7473
▶️ Tests: 37817 executed
🟡 Checks: 32/33 completed

Test Failure

UserControllerSpec > User list (:grails-test-examples-scaffolding:integrationTest in CI / Functional Tests (25))
geb.waiting.WaitTimeoutException: condition did not pass in 10 seconds (failed with exception)
	at geb.waiting.Wait.waitFor(Wait.groovy:128)
	at geb.waiting.PotentiallyWaitingExecutor.execute(PotentiallyWaitingExecutor.groovy:31)
	at geb.Page.verifyThisPageAtOnly(Page.groovy:424)
	at geb.Page.getAtVerificationResult(Page.groovy:217)
	at geb.Page.verifyAt(Page.groovy:188)
	at geb.Browser.doAt(Browser.groovy:1208)
	at geb.Browser.at(Browser.groovy:410)
	at geb.Browser.to(Browser.groovy:566)
	at geb.Browser.to(Browser.groovy:543)
	at geb.Browser.to(Browser.groovy:532)
	at grails.plugin.geb.support.delegate.BrowserDelegate$Trait$Helper.to(BrowserDelegate.groovy:160)
	at com.example.UserControllerSpec.User list(UserControllerSpec.groovy:46)
Caused by: Assertion failed: 

title == pageTitle
|     |  |
|     |  'User List'
|     false
'Please sign in'

	at com.example.pages.UserListPage._clinit__closure1(UserListPage.groovy:28)
	at com.example.pages.UserListPage._clinit__closure1(UserListPage.groovy)
	at geb.waiting.Wait.waitFor(Wait.groovy:117)
	... 11 more

Muted Tests

Note

Checks are currently running using the configuration below.

Select tests to mute in this pull request:

🔲 UserControllerSpec > User list

Reuse successful test results:

🔲 ♻️ Only rerun the tests that failed or were muted before

Click the checkbox to trigger a rerun:

🔲 Rerun jobs


Learn more about TestLens at testlens.app.

@jdaugherty
jdaugherty merged commit 21562ba into 7.0.x Apr 28, 2026
33 of 34 checks passed
@jdaugherty
jdaugherty deleted the grailsBomRestructure branch April 28, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants