Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Project updates #1868

Open
wants to merge 31 commits into
base: 9.0.x
Choose a base branch
from
Open

Multiple Project updates #1868

wants to merge 31 commits into from

Conversation

matrei
Copy link
Contributor

@matrei matrei commented Jan 22, 2025

This PR includes several updates across multiple projects. Please refer to the individual commit messages for detailed descriptions of the changes.

grails/grails-gradle-plugin#394 is needed for publishing to work.

matrei added 23 commits January 22, 2025 09:14
- Add descriptive job names for better output readability.
- Use explicit runner version: `ubuntu-24.04`
- Update step names with emojis for clarity.
- Replace `GRADLE_ENTERPRISE_ACCESS_KEY` with `DEVELOCITY_ACCESS_KEY`.
- Remove unused remote build cache authentication variables.
- Add `GITHUB_MAVEN_PASSWORD` for GitHub packages staging repos where missing.
- Pin version of third-party action: `ben-uk/workflow-dispatch`.
- Add Gradle `--continue` to output all potential errors.
- Add Gradle `--no-build-cache` during publishing to avoid using stale cache issues.
- Grant `packages: read` permission for GitHub packages (e.g., Grails staging repos).
- Simplify `release-notes.yml` by removing unnecessary config checks.
- Replace custom aggregate test report implementation.
- Use `test-report-aggregation` plugin for a simpler and more maintainable solution.
- Reference: [Test Report Aggregation Plugin Documentation](https://docs.gradle.org/current/userguide/test_report_aggregation_plugin.html)
The `idea` plugin is no longer required and has been removed to simplify the build script.
- Change incorrect tag `grails-gsp` to `grails-data-mapping`.
- Groovy version is now sourced from `grails-bom`, making the property redundant.
- All projects now use a unified version sourced from `projectVersion`, rendering the guard obsolete.
- Fixed a typo in Puneet's developer ID
- Use `.configureEach` where applicable for lazy configuration.
- Standardize string usage with single quotes.
- Use lifecycle logger instead of `System.out.println` for better logging.
- Address various Gradle deprecations.
- Configure logging for events: passed, skipped and failed.
- Define a `clean` task in the root project to simplify build cleanup.
- Explicitly add all direct dependencies to enhance stability (reduce reliance on transitive dependencies).
- Set the correct scope for project dependencies.
- Optionally exclude unnecessary transitive API dependencies to ensure accurate testing of dependency chains.
- Add comments to clarify why and in which scope each dependency is used.
- Clean up test code by removing an unused method, eliminating the dependency on `jakarta.annotation:jakarta.annotation-api` in this class.
- Update usages of `BeanUtils.instantiate` to the non-deprecated `BeanUtils.instantiateClass`.
…xtension`

- Refactor code to implement the `IGlobalExtension` interface, replacing the deprecated `AbstractGlobalExtension` class.
- Use `@PendingFeature` so that the build fails if the test unexpectedly succeeds, providing an alert that the test passes.
- The `HasManyDefaultMappedBySpec` test now passes, so the `@Ignore` annotation is no longer needed.
- Update tests to use the `@Suite` annotation, replacing the deprecated `@RunWith`.
…xception`

- Update code to use `SecurityException` instead of the deprecated `AccessControlException`.
- Update year and set copyright holder to "the original author or authors."
- Change the license link to use `https`.
- Resolve issues with building using a Groovy snapshot version.
- Explicitly override the Groovy version in the build when requested, as it is now sourced from grails-bom instead of a property.
@matrei matrei requested a review from jdaugherty January 22, 2025 12:24
.github/workflows/gradle.yml Outdated Show resolved Hide resolved
gradle.properties Show resolved Hide resolved
gradle/publish-config.gradle Outdated Show resolved Hide resolved
grails-datastore-core/build.gradle Show resolved Hide resolved
grails-datastore-gorm-async/build.gradle Outdated Show resolved Hide resolved
grails-datastore-gorm-tck/build.gradle Show resolved Hide resolved
grails-gorm-testing-support/build.gradle Show resolved Hide resolved
test-report/build.gradle Show resolved Hide resolved
Previously, some tests in the TCK were marked with `@Ignored`.
This commit replaces `@Ignored` with `@PendingFeatureIf`, using system property conditions to enable
selective execution. This approach ensures tests are only skipped when necessary, improving test coverage
and flexibility.
Update the CI configuration to include a build matrix for Java versions 17 and 21.
This ensures compatibility and proper testing across multiple supported Java versions.
Re-add the `groovy-test-junit5` dependency to ensure JUnit 5 tests execute correctly.
…mpileClasspath

Switch from `compileOnly` to `compileOnlyApi` to ensure that the `DelegateAsync` AST transformation classes are available
on the downstream `compileClasspath`.
The test `WhereMethodSpec."Test rlike query"` was previously annotated with `@Ignore`, but it is passing. The comment that "rlike not supported by all datastores yet" should not be relevant, as this test runs exclusively in the `grails-datastore-gorm-test` project where it passes successfully.
@matrei matrei requested a review from jdaugherty January 24, 2025 15:02
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.

2 participants