Skip to content

Grails 4.0.0.M1 / Gradle 5: resources in multi-project build not loaded #11266

@davidkron

Description

@davidkron

I tested our multi-project gradle build with Grails 4.0.0.M1 and verified that the issue #11099 is still present in Grails 4 and Gradle 5.

I discovered some additional insight about the problem since the last issue:

  • the problem is not happening with bootRun but with IntelliJ Grails Run Configuration
  • it seems to happend with resources generally and not just message.properties, e.g. configuration from plugin.yml ist not loaded either

See example project reproducting the issue.

Task List

  • Steps to reproduce provided
  • Stacktrace (if present) provided
  • Example that reproduces the problem uploaded to Github
  • Full description of the issue provided (see below)

Steps to Reproduce

Same as #11099 but with Grails 4.0.0.M1 build.

  1. checkout example project
  2. open project in IntelliJ
  3. run IntelliJ Run Configuration "Grails: myapp"

Expected Behaviour

Application "myapp" should have access to resources in "myplugin" and successfully boot.

Actual Behaviour

Application "myapp" has no access to resources in "myplugin". An assertion in the BootStrap file of "myapp" verifies the presence of the configuration from "myplugin". An exception will be thrown because the assertion fails.

Environment Information

  • Operating System: Windows 10
  • Grails Version: 4.0.0.M1
  • JDK Version: 8

Example Application

https://github.com/davidkron/grails-core-issue-11266

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions