Repository navigation
refactor: convert grails-gsp-core to Groovy - #16595
borinquenkid wants to merge 18 commits into
Conversation
GroovyPageMetaInfo.DEFAULT_PLUGIN_PATH and the public fields of DefaultGroovyPageLocator.PluginViewPathInfo became properties; declare them public as in Java. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ovy-grails-gsp-core
…ovy-grails-gsp-core
…ovy-grails-gsp-core
…ovy-grails-gsp-core
…va-to-groovy-grails-gsp-core # Conflicts: # grails-gsp/core/src/main/groovy/org/grails/gsp/compiler/GroovyPageParser.groovy
Rebuild GrailsLayoutPreprocessor, GroovyCollectTag, GroovyFindAllTag, GroovyGrepTag, GroovySyntaxTag, and CachingGroovyPageStaticResourceLocator from their original .java content with semicolons kept and CodeNarc UnnecessarySemicolon suppressed, so GitHub's default-threshold rename detection recognizes these as moves rather than delete+add (see matrei's review on #16576). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…va-to-groovy-grails-gsp-core
…va-to-groovy-grails-gsp-core
…va-to-groovy-grails-gsp-core
…va-to-groovy-grails-gsp-core
…va-to-groovy-grails-gsp-core
|
SUPERSEDED: the Temporary CI flag on this stacked branch (BLOCKER before merge). This Java-to-Groovy chain is a stack of PRs, and every push to any of them starts the full CI matrix, which is more runner time than the ASF allows us. Every PR in the stack except the one closest to its release branch (#16576) therefore carries one temporary commit, With it, CI on this PR compiles but does not run tests or code style. The full build runs on #16576 (closest to 10.0.x), and each PR gets it when the PR below it has merged. Condition for merging this PR: that |
…va-to-groovy-grails-gsp-core
89a0300 to
8aadaa6
Compare
|
Update: this branch now carries a different temporary CI commit (BLOCKER before merge). The earlier In its place, every PR in this stack except #16576 (the one closest to 10.0.x) carries one temporary commit, Condition for merging this PR: that commit must be reverted on this branch first ( |
…va-to-groovy-grails-gsp-core
…/java-to-groovy-grails-gsp-core
…va-to-groovy-grails-gsp-core
…va-to-groovy-grails-gsp-core
🔎 No tests executed 🔎🏷️ Commit: a5a4233 Learn more about TestLens at testlens.app/docs. |
What
Converts the remaining Java sources of
grails-gsp-coreto Groovy: 51.javafiles removed, 51.groovyfiles added (57 files changed, 3917 insertions(+), 3889 deletions(-)).Why
The maintainers asked on #16351 for the Java-to-Groovy migration to land one Gradle project at a time as a stack of PRs, bottom-up in dependency order. #16572 did
grails-data-hibernate7; this PR is 17 of 30 in the next stack (base:refactor/java-to-groovy-grails-taglib). The end state of every file is taken from the9.0.x-java-to-groovybranch, which already carries the regression fixes found by CI.Commits:
Changed outside the converted sources
Java-facing API sweep
Every deleted
.javawas compared with its Groovy twin viajavap -v -protected(class declaration, public/protected fields, constructors, methods incl. modifiers/throws/generics, interface default methods, nested class modifiers, and the annotations callers see). Result:grails-gsp-core: 51 deleted .java, 5 difference(s) found and fixed in this PR (see thefix:commit), 0 leftSee also the notes below. Remaining informational entries (widened visibility, e.g. Groovy property accessors): 40.
Verification
classesandtestClasses(plusast/cli/testFixturessource sets where present) of the converted project(s) and of their direct dependents compile: ['grails-gsp', 'grails-mail', 'grails-web-common', 'grails-web-gsp', 'grails-web-taglib']codeStyle,ratand a whole-repobuild -PskipTestsare run once on the tip of the stack.Notes
MIN_VALUE/MAX_VALUE/next()/previous(), property accessors appear for formerly package-private members, nested static classes with implicit constructors become public (they wereprotected), and generic type parameters that Groovy erases in constructors/methods (descriptors identical).static finalwithoutpubliccreates a property;==callsequals(); Closure/SAM coercions;@CompileStaticwith nested classes. All CI regression fixes found on the umbrella branch are included in the end state.GSPWriter.write(char[], int, int)was an override that only calledsuper; inherited unchanged fromjava.io.PrintWriter.🤖 Generated with Claude Code