grails / grails-forge

This is Grails project creator. Grails projects may be created using the browser interface, Command Line, or via CURL.
Apache License 2.0
3 stars 8 forks source link

Assets from plugin are not packaged by default, need to add packagePlugin = true in build.gradle file #197

Closed jebabarit closed 11 months ago

jebabarit commented 11 months ago

Description

Assets from plugin are not packaged by default, need to add packagePlugin = true in build.gradle file

Task List

Steps to Reproduce

Using grails cli

  1. Create a web-plugin
  2. Add a asset in web-plugin : web-plugin/grails/assets/images/example.svg
  3. Add a asset in web-app : web-app/grails/assets/images/example-2.svg
  4. Run app :

Expected Behaviour

Both assets should be found

Actual Behaviour

the asset from the plugin : localhost:8080/assets/example.svg is found but : the asset from the app : localhost:8080/assets/example-2.svg is not found

unless : assets { ... packagePlugin = true ... } is added to the buld.gradle of the plugin

Environment Information

Example Application

ianroberts commented 10 months ago

https://start.grails.org still generates plugins without packagePlugin = true in the build.gradle - when will this fix go live on there?

puneetbehl commented 10 months ago

This is will be resolved with Grails 6.1.0 or you can test with 6.1.0-SNAPSHOT.