Skip to content

Commit 64513c2

Browse files
committed
revert sitemesh3 upgrade & rename sitemesh -> layout to ensure license compliance
1 parent f30c712 commit 64513c2

File tree

83 files changed

+4238
-721
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+4238
-721
lines changed

LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,4 +263,11 @@ This product includes the following files from Spring Framework 5.3, developed b
263263

264264
See the above Apache License 2.0 for the terms governing these files.
265265

266+
--------------------------------------------------------------------------
267+
268+
This product includes software developed by the OpenSymphony Group (http://www.opensymphony.com/). It uses Sitemesh2,
269+
licensed under the OpenSymphony Software License, Version 1.1.
270+
271+
See licenses/LICENSE-opensymphony.txt for the full license terms.
272+
266273
--------------------------------------------------------------------------

NOTICE

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,7 @@ http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/index.html
2525

2626
This product includes software from Spring Framework 5.3, developed by Pivotal Software, Inc.
2727
Copyright 2002-2020 the original author or authors.
28-
See the LICENSE file for the Apache License 2.0 terms.
28+
See the LICENSE file for the Apache License 2.0 terms.
29+
30+
This product includes software developed by the OpenSymphony Group (http://www.opensymphony.com/). It uses Sitemesh2,
31+
licensed under the OpenSymphony Software License, Version 1.1. See licenses/LICENSE-opensymphony.txt for the full license terms.

RENAME.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Below is a reference of all migrated artifacts - both their old and new name.
121121
| org.grails.plugins | scaffolding | org.apache.grails | grails-scaffolding | | | grails-views |
122122
| org.grails | grails-plugin-services | org.apache.grails | grails-services | | | grails-core |
123123
| org.grails | grails-shell | org.apache.grails | grails-shell-cli | | | grails-core |
124-
| org.grails | grails-plugin-sitemesh3 | org.apache.grails | grails-sitemesh3 | | | grails-views |
124+
| org.grails.plugins | sitemesh2 | org.apache.grails | grails-layout | | | grails-gsp |
125125
| org.grails | grails-spring | org.apache.grails | grails-spring | | | grails-core |
126126
| org.grails.plugins | spring-security-acl | org.apache.grails | grails-spring-security-acl | | | grails-spring-security |
127127
| org.grails.plugins | spring-security-cas | org.apache.grails | grails-spring-security-cas | | | grails-spring-security |

UPGRADE7.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,5 @@ Experienced while upgrading modules for Grails 7
4848

4949
### Cool New Features
5050
- Hello Exterminator, Good by bugs! Lot's of things started working... and working well! For instance, use of controller namespaces now work seemlessly.
51-
- Massive decoupling of dependencies and cleanup between modules. SiteMesh dependencies are no longer compiled into controllers fused between numerous modules. SiteMesh isn't even required to use Grails!
52-
- GSP can now be used OUTSIDE of Grails! see grails-boot
51+
- Massive decoupling of dependencies and cleanup between modules.
5352
- Works with Spring Security 6 out of the box. No plugin needed!

dependencies.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ ext {
9393
'rxjava3.version' : '3.1.10',
9494
'selenium.version' : '4.25.0',
9595
'spock.version' : '2.3-groovy-4.0',
96+
'sitemesh.version' : '2.6.0',
9697
]
9798

9899
// Note: the name of the dependency must be the prefix of the property name so properties in the pom are resolved correctly
@@ -123,6 +124,7 @@ ext {
123124
'rxjava' : "io.reactivex:rxjava:${bomDependencyVersions['rxjava.version']}",
124125
'rxjava2' : "io.reactivex.rxjava2:rxjava:${bomDependencyVersions['rxjava2.version']}",
125126
'rxjava3' : "io.reactivex.rxjava3:rxjava:${bomDependencyVersions['rxjava3.version']}",
127+
'sitemesh' : "opensymphony:sitemesh:${bomDependencyVersions['sitemesh.version']}",
126128
]
127129

128130
// Because pom exclusions aren't properly supported by gradle, we can't inherit the grails-gradle-bom

etc/bin/rename_gradle_artifacts.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@ declare -a views_mappings=(
160160
"org[.]grails:grails-web-gsp-taglib|org.apache.grails.views:grails-web-gsp-taglib"
161161
"org[.]grails:grails-web-gsp|org.apache.grails.views:grails-web-gsp"
162162
"org[.]grails:grails-taglib|org.apache.grails.views:grails-taglib"
163-
"org[.]grails:grails-plugin-sitemesh3|org.apache.grails:grails-sitemesh3"
163+
#"org[.]grails:grails-plugin-sitemesh3|org.apache.grails:grails-sitemesh3"
164+
"org[.]grails[.].plugins:sitemesh2|org.apache.grails:grails-layout"
165+
"org[.]grails:grails-web-sitemesh|org.apache.grails:grails-web-layout"
164166
"org[.]grails:grails-gsp|org.apache.grails.views:grails-gsp-core"
165167
)
166168
declare -a excluded_gsp_mappings=(
@@ -171,7 +173,9 @@ declare -a views_mappings=(
171173
"exclude[[:space:]]+module[[:space:]]*:[[:space:]]*['\"]scaffolding['\"]|exclude module:'grails-scaffolding'"
172174
"exclude[[:space:]]+module[[:space:]]*:[[:space:]]*['\"]gsp['\"]|exclude module:'grails-gsp'"
173175
"exclude[[:space:]]+module[[:space:]]*:[[:space:]]*['\"]grails-web-testing-support['\"]|exclude module:'grails-testing-support-web'"
174-
"exclude[[:space:]]+module[[:space:]]*:[[:space:]]*['\"]grails-plugin-sitemesh3['\"]|exclude module:'grails-sitemesh3'"
176+
#"exclude[[:space:]]+module[[:space:]]*:[[:space:]]*['\"]grails-plugin-sitemesh3['\"]|exclude module:'grails-sitemesh3'"
177+
"exclude[[:space:]]+module[[:space:]]*:[[:space:]]*['\"]sitemesh2['\"]|exclude module:'grails-layout'"
178+
"exclude[[:space:]]+module[[:space:]]*:[[:space:]]*['\"]grails-web-sitemesh['\"]|exclude module:'grails-web-layout'"
175179
"exclude[[:space:]]+module[[:space:]]*:[[:space:]]*['\"]grails-gsp['\"]|exclude module:'grails-gsp-core'"
176180
"exclude[[:space:]]+module[[:space:]]*:[[:space:]]*['\"]fields['\"]|exclude module:'grails-fields'"
177181
)

gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ joddWotVersion=3.3.8
3535
elApiVersion=5.0.1
3636
defaultElImplementationVersion=5.0.0
3737
jspApiVersion=4.0.0
38-
sitemeshVersion=3.2.2
3938
javassistVersion=3.30.2-GA
4039
yakworksHibernateGroovyProxyVersion=1.1
4140
picocliVersion=4.7.6

gradle/publish-root-config.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def publishedProjects = [
6767
'grails-scaffolding',
6868
'grails-services',
6969
'grails-shell-cli',
70-
'grails-sitemesh3',
70+
'grails-layout',
7171
'grails-spring',
7272
'grails-taglib',
7373
'grails-test-core',
@@ -87,6 +87,7 @@ def publishedProjects = [
8787
'grails-web-gsp',
8888
'grails-web-gsp-taglib',
8989
'grails-web-jsp',
90+
'grails-web-layout',
9091
'grails-web-mvc',
9192
'grails-web-taglib',
9293
'grails-web-url-mappings',

grails-controllers/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ dependencies {
3535
api project(':grails-mimetypes')
3636
api project(':grails-validation')
3737
api project(':grails-domain-class')
38+
api project(':grails-web-layout')
3839

3940
api 'org.apache.groovy:groovy'
4041
api 'org.springframework.boot:spring-boot-autoconfigure'

grails-doc/src/en/guide/conf/config/builtInOptions.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ On the runtime front, i.e. `grails-app/conf/application.yml`, there are quite a
3232
* `grails.mime.file.extensions` - Whether to use the file extension to dictate the mime type in link:theWebLayer.html#contentNegotiation[Content Negotiation] (default: true).
3333
* `grails.mime.types` - A map of supported mime types used for link:theWebLayer.html#contentNegotiation[Content Negotiation].
3434
* `grails.serverURL` - A string specifying the server URL portion of absolute links, including server name e.g. grails.serverURL="http://my.yourportal.com". See link:{gspdocs}/ref/Tags/createLink.html[createLink]. Also used by redirects.
35-
* `grails.views.gsp.sitemesh.preprocess` - Determines whether SiteMesh preprocessing happens. Disabling this slows down page rendering, but if you need SiteMesh to parse the generated HTML from a GSP view then disabling it is the right option. Don't worry if you don't understand this advanced property: leave it set to true.
35+
* `grails.views.gsp.layout.preprocess` - Determines whether layout preprocessing happens. Disabling this slows down page rendering, but if you need Grail's layout implementation to parse the generated HTML from a GSP view then disabling it is the right option. Don't worry if you don't understand this advanced property: leave it set to true.
3636
* `grails.reload.excludes` and `grails.reload.includes` - Configuring these directives determines the reload behavior for project specific source files. Each directive takes a list of strings that are the class names for project source files that should be excluded from reloading behavior or included accordingly when running the application in development with the `bootRun` task. If the `grails.reload.includes` directive is configured, then only the classes in that list will be reloaded.
3737

0 commit comments

Comments
 (0)