Skip to content

Update Groovy to 6.0.1 - #17231

Open
matrei wants to merge 1 commit into
9.0.xfrom
deps/groovy-6.0.1
Open

matrei wants to merge 1 commit into
9.0.xfrom
deps/groovy-6.0.1

Conversation

@matrei

@matrei matrei commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Description

Updates the managed Groovy version from 6.0.0 to 6.0.1, together with the two BOM entries that follow it.

Release notes: https://groovy-lang.org/changelogs/changelog-6.0.1.html

Groovy 6.0.1 is a large bug-fix release with 272 issues. It fixes the three 6.0.0 regressions reported from the Groovy 6 upgrade work (#16157):

  • GROOVY-12426: @Delegate generates no methods returning a nested class of a joint-compiled Java source.
  • GROOVY-12427: the joint compilation stub declares the static methods of a precompiled trait static abstract.
  • GROOVY-12434: "Duplicate annotation" when the return type of a trait method has a TYPE_USE annotation.

It also carries the fixes of 5.1.4 and many static compilation, trait and closure fixes. GROOVY-12789 (trait statics checked as overrides of instance getters, #17030) is still open.

Changes

  • groovy.version moves from 6.0.0 to 6.0.1.
  • jline.version moves from 4.4.5 to 4.7.0. groovy-groovysh 6.0.1 depends on JLine 4.7.0, and so does the optional jansi of groovy. This key tracks the JLine version Groovy ships.
  • jackson-2-bom.version moves from 2.22.4 to 2.23.0, and jackson2-annotations.version from 2.22 to 2.23. groovy-yaml and groovy-toml 6.0.1 depend on Jackson 2.23.0, which would otherwise win over the BOM. 2.23.0 was released after 2.22.4 and keeps its fix for CVE-2026-110879: the new PolymorphicTypeValidator.isArrayTypeAllowedExplicitly() from that fix is in the 2.23.0 jar.

Groovy 6.0.1 also moves FlatLaf to 3.8, commonmark to 0.33.0 and asm-util to 9.11.1. The BOM manages none of those except ASM, which is already at 9.11.1. The SbomPlugin license correction for JLine matches every 4.x version, so it needs no change.

Verification

  • ./gradlew validateDependencyVersions validateBomProperties build -PskipTests --continue passes for every module.
  • The test suites of the modules most exposed to a compiler change pass, with 7,624 tests and no failures. The modules are grails-bootstrap, grails-spring, grails-core, grails-web-common, grails-databinding, grails-validation, grails-domain-class, grails-datamapping-core, grails-url-mappings, grails-controllers, grails-interceptors, grails-testing-support-core, the GSP modules, the views modules, grails-xml, grails-shell-cli and grails-console.
  • In the Forge build, :grails-forge-cli:check passes (53 tests). Its InteractiveShell drives JLine directly and resolves 4.7.0.
  • ./gradlew cleanViolationReports aggregateViolations --continue finds no Checkstyle, CodeNarc, PMD, RAT or repository-convention violations. SpotBugs is enabled in no project.
  • I left the full test suite to this PR's CI.

Merging

The change merges into 9.1.x and 10.0.x without conflicts. #17230 updates 8.0.x to Groovy 5.1.4, and its merge-up into 9.0.x conflicts on groovy.version. Keep the 9.0.x side.

Follow-ups

The workarounds whose Groovy defects 6.0.1 fixes are removed in two stacked PRs. #17232 targets 8.0.x and handles GROOVY-12427 and GROOVY-12434. #17233 targets 9.0.x and handles GROOVY-12426.

Groovy 6.0.1 is a bug-fix release that also moves two dependencies the
BOM manages:

- groovy-groovysh moves to JLine 4.7.0. jline.version tracks the JLine
  version Groovy ships, so it follows.
- groovy-yaml and groovy-toml move to Jackson 2.23.0, which would win
  over the 2.22.4 jackson-2-bom.version, so the BOM moves to 2.23.0 and
  jackson-annotations to 2.23. 2.23.0 carries the CVE-2026-110879 fix
  of 2.22.4.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant