How to load templates from plugin in multi-project build?
- Dominant language
- Groovy
- Stars
- 2.9k
- Forks
- 975
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 92
Description
We have some application that we are trying to migrate from Grails 3 to Grails 4. The project is organized as a multi-project build, one application and some plugins. We have some "core" plugin that provides the basic templates for the fields plugin, e.g. `/grails-app/views/templates/_fields/_table.gsp`.
In Grails 3.x this has worked great, but since Grails 4.x something must have changed. The templates from our core-plugin aren't loaded anymore and it always falls back to the default templates from the fields plugin.
Is there a solution or workaround to this?
Contributor guide
Research direction
Reproduce the Grails 3-to-4 multi-project build with the core plugin and the fields plugin, including the template at /grails-app/views/templates/_fields/_table.gsp. Start by tracing how Grails 4 resolves plugin templates and compare that behavior with Grails 3; done means the core-plugin template is loaded instead of the fields-plugin default, or a documented workaround is identified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100