-
- Notifications
You must be signed in to change notification settings - Fork 967
Restore Sitemesh3GrailsPlugin #14891
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
Conversation
dc65411 to a960a76 Compare …be included by the end application
a960a76 to cdbb4df Compare | Previously, sitemesh2 existed across 2 coordinates: Notes on this work: DecouplingI've decoupled sitemesh2 completely from gsp with these changes. Either ForgeI've enhanced forge so that if you add the Sitemesh3 feature, it will use that instead of the default (which is grails-layout). DocumentationI've updated the upgrading guide to clarify this requirement to make sure people are aware. TestingMy real issue was what to do about testing since there are several known issues with the sitemesh 3 plugin. We already have a testing app dedicated to sitemesh3 that's split off with I've also not ported the applyLayout tests since there isn't a functionality equivalent in sitemesh3. If/when we decide to remove sitemesh2, we'll need to make sure these tests are ported. Spring BootI reverted the changes to Spring Boot app, so it's assumed that if you're using spring boot and grails, you're using sitemesh 3. I don't think the demand is too high for sitemesh2 + Spring Boot, so this seems like a reasonable compromise - otherwise we would have a lot more work to do and have to create 2 separate projects. Also, we are not publishing this application so it's only an example. |
| @matrei I've renamed the plugin from grailsLayout to layout |
cb7a050 to 84a6d43 Compare 84a6d43 to 9a3f649 Compare
Minor clarification: grails-web-sitemesh was manually excluded in the build.gradle in Grails 6.2.x configurations { all { // ... existing configurations exclude group:'org.grails.plugins', module:'sitemesh2' exclude group:'org.grails', module:'grails-web-sitemesh' } } dependencies { implementation("org.sitemesh:grails-plugin-sitemesh3:6.1.2") // ... existing dependencies }(excellent work btw... 😄) |
sbglasius left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume the many removed tests from sitemesh3 is on purpose.
So as you can see, just being nitpicky. I approve!
...ails-layout/src/main/groovy/org/apache/grails/web/layout/GrailsContentBufferingResponse.java Show resolved Hide resolved
...out/src/test/groovy/org/apache/grails/views/gsp/layout/FullGrailsLayoutLifeCycleTests.groovy Outdated Show resolved Hide resolved
As part of the decoupling, since either sitemesh library can be used with gsp, I had to pull up several tests. We have grails-layout & grails-sitemesh3 test projects and I've moved or duplicated the tests between those projects where appropriate. Overall, there shouldn't be a removal of tests. |
No description provided.