Repository navigation
refactor: convert grails-logging, grails-quartz, grails-startup-progress and grails-datasource to Groovy - #16590
Conversation
…oovy-runtime-small
…oovy-runtime-small
…has been answered A failed start only waits to tell a page that polled within the last three seconds. The spec raised the failure on its own schedule, so a pause of the machine between its last poll and the failure left the start unwatched and the port closed before the page could be told (Windows shard 2: 'No FAILED status within 30 seconds; answers: CREATING_BEANS, then no answer'). The failing bean, web server and hook now wait until awaitStatus has been answered since the gates opened. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…oovy-runtime-small
…ava-to-groovy-runtime-small
Rebuild LoggingTransformer, GrailsJobClassConstants, and StartupProgressApplicationStartup 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>
…ava-to-groovy-runtime-small
…ava-to-groovy-runtime-small
…ava-to-groovy-runtime-small
…ava-to-groovy-runtime-small
…ava-to-groovy-runtime-small
|
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 |
…ava-to-groovy-runtime-small
4496776 to
e98cb14
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 ( |
…ava-to-groovy-runtime-small
…/java-to-groovy-runtime-small
…ava-to-groovy-runtime-small
…ava-to-groovy-runtime-small
🔎 No tests executed 🔎🏷️ Commit: a02bd8d Learn more about TestLens at testlens.app/docs. |
What
Converts the remaining Java sources of
grails-logging,grails-quartz,grails-startup-progress,grails-datasourceto Groovy: 21.javafiles removed, 27.groovyfiles added (30 files changed, 2224 insertions(+), 1517 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 12 of 30 in the next stack (base:refactor/java-to-groovy-grails-encoder). 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-logging: 1 deleted .java, 0 differences requiring actiongrails-quartz: 8 deleted .java, 0 differences requiring actiongrails-startup-progress: 11 deleted .java, 0 differences requiring actiongrails-datasource: 1 deleted .java, 0 differences requiring actionSee also the notes below. Remaining informational entries (widened visibility, e.g. Groovy property accessors): 3.
Verification
classesandtestClasses(plusast/cli/testFixturessource sets where present) of the converted project(s) and of their direct dependents compile: ['grails-rest-transforms', 'grails-services', 'grails-spring-security-acl', 'grails-test-suite-persistence', 'grails-test-suite-uber']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.🤖 Generated with Claude Code