-
Notifications
You must be signed in to change notification settings - Fork 35
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
grails-gsp
should not depend on codeconsole/grails-sitemesh3
#465
Comments
@matrei I believe this was done because there was a forced dependency for the constant for SiteMesh 2. Can you provide a code link to where the plugin is being required? |
Sure, here are links to the usages:
grails-gsp/grails-web-gsp/src/main/groovy/org/grails/web/pages/GroovyPagesServlet.java Line 22 in acfd8d6
grails-gsp/grails-web-gsp/src/main/groovy/org/grails/web/pages/GroovyPagesServlet.java Line 219 in acfd8d6
grails-gsp/grails-web-gsp/src/main/groovy/org/grails/web/servlet/view/GroovyPageView.java Line 37 in acfd8d6
grails-gsp/grails-web-gsp/src/main/groovy/org/grails/web/servlet/view/GroovyPageView.java Line 70 in acfd8d6
|
grails-gsp
should not depend on codeconsole/sitemesh3-grails-plugin
grails-gsp
should not depend on codeconsole/grails-sitemesh3
@matrei thanks for that. It has been so long, I forgot I removed sitemesh2 from grails-gsp as well. The reason it was required is layouts are a fundamental part of Grails Web GSP and they will not work without SiteMesh or SiteMesh 3. SiteMesh 2 has always been a forced dependency. If we want to offer a version of grails that does not support layouts, we could remove the dependency. I don't have a problem with that. Another reason to not force SiteMesh 3 resolution would be if we decided to keep support for SiteMesh 2. |
sitemesh3-grails-plugin could also be brought in under grails-gsp repo |
`grails-gsp` should not depend on an external Grails Plugin. This dependency was only needed for a `String` constant: `org.grails.web.sitemesh.GroovyPageLayoutFinder.RENDERING_VIEW_ATTRIBUTE`. This commit removes the dependency by declaring the same constant in `GroovyPagesServlet` and using that instead. Closes #465
@codeconsole Yes, I think that makes sense, as sitemesh is such an integral part of Grails 👍 |
The dependency appears to be required solely for the
String
constantRENDERING_VIEW_ATTRIBUTE
.@codeconsole Could we either reverse this dependency or recreate the constant in
grails-gsp
to decouplegrails-gsp
from thegrails-sitemesh3
plugin?The text was updated successfully, but these errors were encountered: