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

plugins can overwrite message bundles in integration tests #235

Closed
matthijsbierman opened this issue Oct 19, 2023 · 0 comments · Fixed by #244
Closed

plugins can overwrite message bundles in integration tests #235

matthijsbierman opened this issue Oct 19, 2023 · 0 comments · Fixed by #244
Assignees

Comments

@matthijsbierman
Copy link

matthijsbierman commented Oct 19, 2023

OS: macOS Sonoma 14.0 (23A344)
JDK: Eclipse Temurin JDK 17.0.6+10 (aarch64)
Grails: 6.0.0 installed through SDKman

The order of resources on the classpath from plugins seems to have changed between version 5.3.0 and 6.0.0. Before the project resources came first, but now the plugins come first.
This causes integration tests to load message bundles from the plugin, instead of the application's grails-app/i18n/ folder.

Example project with reproduction here: https://github.com/matthijsbierman/grails6-i18n-bug

If you remove the dependency on the mail plugin, the test will pass. Downgrading to implementation("org.grails:grails-gradle-plugin:5.3.0") in buildSrc/build.gradle will also result in a passing test.

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 a pull request may close this issue.

2 participants