Skip to content

Commit 86f1010

Browse files
committed
Merge branch '8.0.x' into 8.1.x
2 parents 0f22978 + 96a4ea4 commit 86f1010

25 files changed

Lines changed: 672 additions & 98 deletions

File tree

‎.agents/skills/gradle-developer/SKILL.md‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Presence-based flags (property **present**, value optional) match `skipFunctiona
136136

137137
## Gradle Version Sync (Hard Rule)
138138

139-
Current line: **Gradle 9.9.1** (`distributionUrl` + `gradleToolingApiVersion=9.9.1`). Upstream may already ship a newer 9.9.x patch - this repo rides close to latest **only after** a deliberate multi-location bump PR. Do not "helpfully" jump one wrapper ahead of the rest.
139+
Current line: **Gradle 9.9.2** (`distributionUrl` + `gradleToolingApiVersion=9.9.2`). Upstream may already ship a newer 9.9.x patch - this repo rides close to latest **only after** a deliberate multi-location bump PR. Do not "helpfully" jump one wrapper ahead of the rest.
140140

141141
**Two Groovy stacks:** Gradle itself embeds **Groovy 4** for build logic. Application/runtime code on 8.0.x is **Groovy 5**. That is why `dependencies.gradle` keeps separate maps:
142142

@@ -656,16 +656,16 @@ Develocity: `https://develocity.apache.org` - build scans publish when authentic
656656
657657
Use official docs for API signatures and deprecations (pin URLs to the version you are bumping toward):
658658
659-
- [Gradle 9.9 release notes](https://docs.gradle.org/9.9.1/release-notes.html)
660-
- [Upgrading major version 9](https://docs.gradle.org/9.9.1/userguide/upgrading_major_version_9.html)
661-
- [Upgrading within Gradle 9.x](https://docs.gradle.org/9.9.1/userguide/upgrading_version_9.html)
662-
- [Java Library plugin](https://docs.gradle.org/9.9.1/userguide/java_library_plugin.html)
663-
- [Java Platform / BOM](https://docs.gradle.org/9.9.1/userguide/java_platform_plugin.html)
664-
- [Platforms](https://docs.gradle.org/9.9.1/userguide/platforms.html)
665-
- [Sharing build logic via included builds](https://docs.gradle.org/9.9.1/userguide/sharing_build_logic_between_subprojects.html)
666-
- [Task configuration avoidance](https://docs.gradle.org/9.9.1/userguide/task_configuration_avoidance.html)
667-
- [Configuration cache](https://docs.gradle.org/9.9.1/userguide/configuration_cache.html) and its [requirements](https://docs.gradle.org/9.9.1/userguide/configuration_cache_requirements.html)
668-
- [Version catalogs](https://docs.gradle.org/9.9.1/userguide/version_catalogs.html) (docs like them - **this repo does not**)
659+
- [Gradle 9.9 release notes](https://docs.gradle.org/9.9.2/release-notes.html)
660+
- [Upgrading major version 9](https://docs.gradle.org/9.9.2/userguide/upgrading_major_version_9.html)
661+
- [Upgrading within Gradle 9.x](https://docs.gradle.org/9.9.2/userguide/upgrading_version_9.html)
662+
- [Java Library plugin](https://docs.gradle.org/9.9.2/userguide/java_library_plugin.html)
663+
- [Java Platform / BOM](https://docs.gradle.org/9.9.2/userguide/java_platform_plugin.html)
664+
- [Platforms](https://docs.gradle.org/9.9.2/userguide/platforms.html)
665+
- [Sharing build logic via included builds](https://docs.gradle.org/9.9.2/userguide/sharing_build_logic_between_subprojects.html)
666+
- [Task configuration avoidance](https://docs.gradle.org/9.9.2/userguide/task_configuration_avoidance.html)
667+
- [Configuration cache](https://docs.gradle.org/9.9.2/userguide/configuration_cache.html) and its [requirements](https://docs.gradle.org/9.9.2/userguide/configuration_cache_requirements.html)
668+
- [Version catalogs](https://docs.gradle.org/9.9.2/userguide/version_catalogs.html) (docs like them - **this repo does not**)
669669
670670
### Docs say X - we do Y
671671

‎.sdkmanrc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
java=21.0.12-librca
99
# Keep gradle version synced with gradle.properties (gradleToolingApiVersion).
1010
# Update the gradle-bootstrap project to propagate the version to all gradle-wrapper.properties files.
11-
gradle=9.9.1
11+
gradle=9.9.2

‎build-logic/gradle/wrapper/gradle-wrapper.properties‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# and grails-forge/grails-forge-core/grails-app/views/forge/feature/build/gradle/templates/gradleWrapperProperties.gsp
33
distributionBase=GRADLE_USER_HOME
44
distributionPath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.9.1-bin.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.9.2-bin.zip
66
networkTimeout=10000
77
retries=0
88
retryBackOffMs=500

‎end-to-end/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ neither the core build nor a contributor's default environment inherits a second
6060

6161
| Where | JDK | Why |
6262
|---|---|---|
63-
| `legacy-g7-command-plugin/.sdkmanrc` | 17, Gradle 8.14.7 | What Grails 7 pins, so the fixture is built the way a Grails 7 plugin actually was. `gradle-bootstrap` generates this wrapper from that file via its `legacyG7Wrapper` task, rather than copying the shared one. |
63+
| `legacy-g7-command-plugin/.sdkmanrc` | 17, Gradle 8.14.8 | What Grails 7 pins, so the fixture is built the way a Grails 7 plugin actually was. `gradle-bootstrap` generates this wrapper from that file via its `legacyG7Wrapper` task, rather than copying the shared one. |
6464
| the repository's root `.sdkmanrc` | 21 | The Grails 8 baseline. This build consumes artifacts from the core build, so it runs on whatever the core build runs on — it deliberately does not re-pin that. |
6565

6666
## Running locally

‎end-to-end/gradle/wrapper/gradle-wrapper.properties‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.9.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.9.2-bin.zip
44
networkTimeout=10000
55
retries=0
66
retryBackOffMs=500
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Matches Grails 7: JDK 17 and Gradle 8.14.7 are what the 7.0.x branch pins.
1+
# Matches Grails 7: JDK 17 and Gradle 8.14.8 are what the 7.0.x branch pins.
22
# Deliberately not synced with the repository root, which tracks Grails 8.
33
java=17.0.18-librca
4-
gradle=8.14.7
4+
gradle=8.14.8

‎end-to-end/legacy-g7-command-plugin/gradle/wrapper/gradle-wrapper.properties‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.7-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.8-bin.zip
44
networkTimeout=10000
55
retries=0
66
retryBackOffMs=500

‎gradle.properties‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ geantyrefVersion=1.3.16
4848
gparsVersion=1.2.1
4949
# Keep gradle version synced with .sdkmanrc, all gradle-wrapper.properties files,
5050
# and grails-forge/grails-forge-core/grails-app/views/forge/feature/build/gradle/templates/gradleWrapperProperties.gsp
51-
gradleToolingApiVersion=9.9.1
51+
gradleToolingApiVersion=9.9.2
5252
greenmailVersion=2.1.14
5353
javassistVersion=3.33.0-GA
5454
jnrPosixVersion=3.2.4

‎gradle/wrapper/gradle-wrapper.properties‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# and grails-forge/grails-forge-core/grails-app/views/forge/feature/build/gradle/templates/gradleWrapperProperties.gsp
33
distributionBase=GRADLE_USER_HOME
44
distributionPath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.9.1-bin.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.9.2-bin.zip
66
networkTimeout=10000
77
retries=0
88
retryBackOffMs=500

‎grails-doc/src/en/guide/upgrading/upgrading70x.adoc‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,3 +1324,30 @@ As of Grails 7.0.18, with `grails.plugin.springsecurity.rest.token.storage.jwt.u
13241324
* For an encrypted JWT, `JwtService.parse` and the `accessTokenJwt` property of an `AccessToken` now return a `grails.plugin.springsecurity.rest.token.generation.jwt.NestedJwt` instead of a `com.nimbusds.jwt.EncryptedJWT`. Its claims are those of the signed JWT inside, its header is that of the encrypted JWT, and it serializes to the token.
13251325
* With encrypted JWTs enabled, a signed JWT is rejected as an invalid token, and with signed JWTs, an encrypted JWT is. Previously such a token failed with a `NullPointerException`.
13261326
* An encrypted JWT whose content encryption key is encrypted with `RSA1_5` is rejected unless `grails.plugin.springsecurity.rest.token.generation.jwt.jweAlgorithm` is `RSA1_5`. The plugin passes that setting to the new `jweAlgorithm` property of `JwtService`. A `jwtService` bean that an application defines itself accepts `RSA1_5` as before, unless the application sets that property too.
1327+
1328+
==== More GSP tags HTML-encode the attribute values they write
1329+
1330+
These tags now HTML-encode the values they write into attributes, as `<g:link>` and `<g:textField>` already did and as these tags already encoded their other attributes:
1331+
1332+
* `<g:form>`, `<g:uploadForm>` and `<g:formActionSubmit>`: the URL in `action` and `formaction`, and the hidden fields that a `RequestDataValueProcessor` adds to a form.
1333+
* `<g:checkBox>`: `name`, `value`, `form`, and the `id` taken from the name, on the checkbox and on its hidden field.
1334+
* `<g:actionSubmit>` and `<g:actionSubmitImage>`: `value`, the `action` in the button's name, and `src`.
1335+
* `<g:datePicker>`: `name`, `id` and `selectDateClass`, on the labels, the hidden field and each select.
1336+
* `<g:radio>` and `<g:radioGroup>`: `name`, and on `<g:radio>` the `id` taken from it.
1337+
* `<g:select>`: the key of `noSelection`.
1338+
* `<g:field>`: `type`.
1339+
* `<g:withTag>`: the values of `attrs` that are not closures.
1340+
* `<g:external>`: `uri`, and `<g:javascript>`: `src`.
1341+
* `<g:paginate>`: `class`, on the current step.
1342+
* `<g:sortableColumn>`: `title`, which it writes as the text of the column's link. A text from `titleKey` is written as the message source returns it. Mark a `title` that holds markup with `raw()`.
1343+
* `<g:renderException>`: `detailsClass`, `stackClass`, `filenameClass`, `snippetClass`, `lineClass`, `lineNumberClass` and `lineErrorClass`.
1344+
1345+
The browser decodes the attribute, so a value without a character reference reaches it unchanged. The markup changes, though: an `&` in the URL of a form is written as `+&amp;+`, as `<g:link>` writes it in an `href`.
1346+
1347+
A value encoded with `encodeAsHTML()` before it reaches the tag is written once, not encoded again. That holds for a String, for a value captured from a GSP body with `<g:set>`, and for the output of a tag such as `fieldValue()`, also when a `RequestDataValueProcessor` returns the value unchanged. When the processor changes the value, the tag encodes what the processor returns, so a value encoded beforehand is encoded twice, as `<g:textField>` already did. There is one more exception: `<g:form>` and `<g:formActionSubmit>` build their URL from `uri`, `base`, `controller` and their other link attributes and only then encode it, so a value encoded beforehand is encoded twice there, as it already was in the `href` of `<g:link>`. Pass those values unencoded. A `url` attribute that the tag writes as it is given is written once. A character reference written in the page, as in `+name="a&amp;b"+`, is encoded as well: write the character itself.
1348+
1349+
A value marked with `raw()` is still written as given by the tags that wrote it so before, and so are the text and the `default` of `message()`, which comes back marked raw. Where a `RequestDataValueProcessor` is registered, `<g:textField>` and the other field tags encode what the processor returns, as before, and `<g:radio>` encodes such a value in any case, as before. Do not pass request data through `raw()` or as the `default` of `message()`.
1350+
1351+
`<g:radio>` now encodes its `value` once. It encoded it twice, so a value with `&`, `<`, `>`, `"` or `'` was submitted with character references in it, such as `+R&amp;D+` for `R&D`.
1352+
1353+
A value encoded beforehand is no longer encoded twice in the `value` of `<g:textField>`, `<g:hiddenField>` and the other field tags when a `RequestDataValueProcessor` returns it unchanged, nor in an option of `<g:select>`, with or without a processor. `<g:paginate>` and `<g:sortableColumn>` write a `class` that was encoded beforehand once next to the classes they add, such as `step` and `sortable`; they encoded it twice.

0 commit comments

Comments
 (0)