Skip to content

PR #2 Merge grails-data-mapping & grails-geb into grails-core - #14324

Merged
jdaugherty merged 501 commits into
7.0.xfrom
grails-geb
Apr 22, 2025
Merged

jdaugherty merged 501 commits into
7.0.xfrom
grails-geb

Conversation

@jdaugherty

@jdaugherty jdaugherty commented Apr 21, 2025 •

Copy link
Copy Markdown
Contributor

Per the decision[1], this merges the grails-data-mapping & grails-geb repositories into grails-core.

Please note that after having these repositories fully merged, clean up was done, including:

  1. significantly changing the build to make tasks lazy
  2. spinning up mongodb containers instead of relying on a local instance
  3. removing isolatedTest helper - it was configuring a secondary test task which meant the tests ran twice
  4. reviewing uses of @ignore and fixing tests that were never updated since the groovy 4 introduction
  5. generating the grails-bom in the documentation from the dependencies (See ExtractDependenciesTask)
  6. fixing rate limiting of the grails-geb images by specifying an image pull policy to wait at least a day before pulling agian
  7. unifying the parallel approach across all repositories
  8. making several tasks cacheable (FindMainClass, Views Tasks, GSP Tasks)
  9. renames the GSP forked compiler to remove the word "task" since it's not a gradle task
  10. Add options to skip various tests
  11. Updates old ticket references to the apache tickets
  12. Updates various build files to remove gradle deprecations
  13. Fixes the groovydoc so that external libraries are resolvable
  14. Prevents adding external classes to the classpath of groovydoc - so they're not documented
  15. Ensures ast / java / groovy sources are used for groovydoc
  16. Fixes the selenium version by including it in grails-bom
  17. removes .web from grails-web-boot package per previous discussion on grails-forge PR
  18. adds @ignore on tests that seem to fail only on windows
  19. exclude tests from groovydoc

[1] https://lists.apache.org/thread/7trbthyv31tp2pkwpr3swn1pm80nd969

jdaugherty and others added 30 commits December 20, 2024 09:57
Merge 4.1.x to 5.0.x & restore NEXUS variables
#118)

* fix: disable recording container

Closes gh-117

* refactor: set recording mode directly on created container
* fix: add setting to disable tracing

Close gh-119

* docs: document `grails.geb.tracing.enabled` setting
# Conflicts:
#	gradle.properties
This resolves an issue on Windows when using the file from `container.copyFileToContainer()` with the Geb FileInput module.
`macos-latest` does not seem to have container support.
`windows-latest` does not seem to provide a container environment.
- Use `replace(char, char)` instead of `replaceAll(String, String)` to avoid the overhead of regex pattern compilation.
- Replace hardcoded string literals with `File.separatorChar`, ensuring the `replace` operation is a no-op on non-Windows hosts where no substitution is needed.
Cross-Platform Geb FileInput module support
This commit introduces explicit delegation to improve convenience and support for IDE autocompletion. The following delegates have been added:

- `browser` object delegate
- `page` object delegate
- `report(String)` method delegate
- `getPageSource()` method delegate
- Refactor `ContainerAwareDownloadSupport` to a more generic support trait and move `createFileInputSource` method to it.
- Move support classes to `support` package.
- This enables IDE autocompletion to display correct parameter names, improving developer experience.
Geb classes lack parameter metadata, which prevents proper IDE autocompletion. To address this, we manually delegate to enable accurate parameter names.

- Add delegate implementations for all Geb interfaces in `ContainerGebSpec`.
- Move container-related logic to the `ContainerSupport` class for better separation of concerns.
- Add `@CompileStatic` where possible.
The `@since` attribute in the `ContainerSupport` class was incorrectly set to `4.1`.
Updated it to the correct version, `4.2`.
Enhance Developer Experience with Explicit Delegation

@matrei matrei left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay, Intellij kept hanging for me and trying to use the GitHub interface left me going in circles. I have not been able to do a thourough review and only have some minor comments. As always amazing work, thank you @jdaugherty !

Comment thread gradle.properties Resolved
Comment thread gradle/test-config.gradle Resolved
Comment thread gradle/grails-data-tck-config.gradle Resolved
Base automatically changed from grails-data-merge to 7.0.x April 22, 2025 14:21
@jdaugherty
jdaugherty merged commit 0ec681d into 7.0.x Apr 22, 2025
@jdaugherty
jdaugherty deleted the grails-geb branch April 22, 2025 14:27
@jdaugherty jdaugherty mentioned this pull request Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants