Skip to content

Remove deprecated classes and methods for Grails 8 - #15565

Merged
jdaugherty merged 8 commits into
8.0.xfrom
remove-deprecated
Apr 9, 2026
Merged

jdaugherty merged 8 commits into
8.0.xfrom
remove-deprecated

Conversation

@matrei

@matrei matrei commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

Copilot PR description:

This pull request removes deprecated code and legacy behaviors in preparation for Grails 8.0, with a focus on simplifying enum marshalling, cleaning up obsolete constructors and methods, and removing compatibility stubs. The changes modernize the codebase and remove support for deprecated configuration and extension points.

Enum marshalling and converter configuration:

  • Removed the legacy EnumMarshaller classes for both JSON and XML, and updated the configuration to always register SimpleEnumMarshaller by default, eliminating the previous format switch and legacy marshaller registration. This simplifies enum serialization and prepares for consistent behavior in Grails 8.0. (ConvertersConfigurationInitializer.java [1] [2]; EnumMarshaller.java [3] [4]

Removal of deprecated plugin and application extension points:

  • Removed deprecated constructors and methods from GrailsApplicationPostProcessor and ProfilingGrailsApplicationPostProcessor, including those related to plugin discovery and plugin manager customization, as well as from DefaultGrailsPluginManager. These changes further enforce the use of the new plugin discovery approach. (GrailsApplicationPostProcessor.groovy [1] [2]; ProfilingGrailsApplicationPostProcessor.groovy [3]; DefaultGrailsPluginManager.java [4]

Core API cleanup:

  • Removed deprecated constants from the GrailsApplication interface and the deprecated setLoadCorePlugins method from GrailsPluginManager, reflecting their obsolescence in the new plugin architecture. (GrailsApplication.java [1]; GrailsPluginManager.java [2]

Compatibility and legacy code removal:

Deprecated builder removal:

@testlens-app

This comment has been minimized.

@jdaugherty

Copy link
Copy Markdown
Contributor

@matrei FYI: I updated the intellij code style in the spring boot 4 PR to fix some mismatches with the checkstyle (when reformatting I noticed them)

@testlens-app

testlens-app Bot commented Apr 9, 2026

Copy link
Copy Markdown

✅ All tests passed ✅

🏷️ Commit: af90bdd
▶️ Tests: 42085 executed
⚪️ Checks: 35/35 completed


Learn more about TestLens at testlens.app.

@matrei matrei added the relates-to:v8 Grails 8 label Apr 9, 2026
# Conflicts:
#	grails-doc/src/en/guide/upgrading/upgrading80x.adoc
#	grails-events/compat/build.gradle
#	grails-spring/src/main/groovy/org/grails/spring/GrailsApplicationContext.java
@jdaugherty jdaugherty added this to the grails:8.0.0-M1 milestone Apr 9, 2026
@jdaugherty
jdaugherty merged commit 71f485c into 8.0.x Apr 9, 2026
28 checks passed
@jdaugherty
jdaugherty deleted the remove-deprecated branch April 9, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants