The GitHub Actions job "CI - Groovy Joint Validation Build" on 
grails-core.git/feat/gradle-managed-version-overrides has failed.
Run started by GitHub user jamesfredley (triggered by jamesfredley).

Head commit for run:
bbf5e5320c72c762b9cb1ef56961007fc0300fdb / James Fredley 
<[email protected]>
Fix GrailsDependencyValidatorPlugin to prefer enforcedPlatform BOM

After the 8.0.x merge, grails-app projects now auto-inject platform(grails-bom) 
on every declarable configuration, while Micronaut test projects additionally 
declare enforcedPlatform(grails-micronaut-bom). The previous detectBomPath() 
returned the first BOM dependency it encountered, which after iteration order 
changes ends up being grails-bom, causing the validator to compare resolved 
versions (Groovy 5.0.5 / Spock 2.4-groovy-5.0 from Micronaut's enforced 
platform) against grails-bom's expected versions (Groovy 4.0.31 / Spock 
2.3-groovy-4.0).

detectBomPath now prefers an enforcedPlatform declaration over a regular 
platform: it returns the first enforcedPlatform BOM it finds, falling back to 
the first regular platform BOM only if no enforced declaration exists. The 
enforced BOM is the one whose constraints actually win at resolution time, so 
it is the correct reference for the validator's expected versions.

Fixes the failing :grails-test-examples-issue-11767:validateDependencyVersions 
and :grails-test-examples-micronaut-groovy-only:validateDependencyVersions 
tasks on PR #15467 CI.

Assisted-by: claude-code:claude-opus-4-7

Report URL: https://github.com/apache/grails-core/actions/runs/25134650260

With regards,
GitHub Actions via GitBox

Reply via email to