You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 48ff9cb
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .agents/skills/gradle-developer/SKILL.md
+16-15Lines changed: 16 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more contributor l
11
11
12
12
## What I Do
13
13
14
-
- Write and change Gradle build scripts the way **this repository** already does them on `8.0.x` (Gradle **9.8.x**).
14
+
- Write and change Gradle build scripts the way **this repository** already does them on `8.0.x` (Gradle **9.9.x**).
15
15
- Keep agents off generic Gradle "best practice" when it conflicts with established monorepo patterns.
16
16
- Cover composite builds (`build-logic`, `grails-gradle`, `grails-forge`, `end-to-end`), convention plugins, BOM/`platform()` dependency management, test wiring, publishing hooks, and Gradle 9 task-configuration traps learned from recent PRs.
17
17
- Make Gradle changes boring, copy-paste consistent, and correct on the first try.
@@ -136,7 +136,7 @@ Presence-based flags (property **present**, value optional) match `skipFunctiona
136
136
137
137
## Gradle Version Sync (Hard Rule)
138
138
139
-
Current line: **Gradle 9.8.2** (`distributionUrl` + `gradleToolingApiVersion=9.8.2`). Upstream may already ship a newer 9.8.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.0** (`distributionUrl` + `gradleToolingApiVersion=9.9.0`). 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.
140
140
141
141
**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:
142
142
@@ -148,13 +148,14 @@ Never unify those casually.
148
148
### Preferred bump workflow
149
149
150
150
1. Set the new Gradle version in **`.sdkmanrc`** (`gradle=…`).
151
-
2. Run the bootstrap project (uses a system `gradle` to regenerate shared wrappers from `.sdkmanrc`):
151
+
2. Run the bootstrap project with a system `gradle`**of the new version**to regenerate shared wrappers from `.sdkmanrc`. The `wrapper` task copies the jar from the Gradle that runs it, so an older `gradle` writes its own jar next to the new `distributionUrl`:
152
152
153
153
```bash
154
+
sdk env install # installs any missing versions .sdkmanrc names, then switches this shell to them
154
155
gradle -p gradle-bootstrap
155
156
```
156
157
157
-
Bootstrap generates the wrapper under `gradle-bootstrap/`, **copies** it to **grails-forge**, **grails-gradle**, and **end-to-end**, then **moves** the generated wrapper into the **repository root**. It also runs `legacyG7Wrapper` so **`end-to-end/legacy-g7-command-plugin` stays on its pinned Grails 7 Gradle version** (currently 8.x - do **not** force it to 9). Root is therefore bootstrap-covered; do not re-list it as a manual step.
158
+
Bootstrap overwrites the shared `gradle-wrapper.properties` files, which drops the "keep synced" comments at the top of some of them; restore those. Bootstrap generates the wrapper under `gradle-bootstrap/`, **copies** it to **grails-forge**, **grails-gradle**, and **end-to-end**, then **moves** the generated wrapper into the **repository root**. It also runs `legacyG7Wrapper` so **`end-to-end/legacy-g7-command-plugin` stays on its pinned Grails 7 Gradle version** (currently 8.x - do **not** force it to 9). Root is therefore bootstrap-covered; do not re-list it as a manual step.
158
159
159
160
3. Manually refresh the locations bootstrap does **not** cover. For each tree, keep the **full** wrapper set in sync (`gradle-wrapper.properties`, `gradle-wrapper.jar`, `gradlew`, `gradlew.bat`) - not properties alone:
160
161
@@ -551,7 +552,7 @@ Verify a change with:
551
552
# "Configuration cache entry reused"
552
553
```
553
554
554
-
The report is `build/reports/configuration-cache/*/*/configuration-cache-report.html`; its JSON between `// begin-report-data` and `// end-report-data`names the class, closure and field behind each problem.
555
+
The report is `build/reports/configuration-cache/*/*/configuration-cache-report.html`; the JSON in its `<script type="application/json" id="diagnostics">` block names the class, closure and field behind each problem. Gradle treats that data as internal and changed its format in 9.9, so expect to adjust anything that reads it.
555
556
556
557
The `grails-gradle` TestKit specs run every fixture build with the configuration cache and `problems=fail` (`GradleSpecification` writes it into the TestKit Gradle user home). Fixture tasks that inspect the model must read it into providers while configuring and only print in `doLast`; pass `--no-configuration-cache` only to test behavior without it.
- [Configuration cache](https://docs.gradle.org/9.8.2/userguide/configuration_cache.html) and its [requirements](https://docs.gradle.org/9.8.2/userguide/configuration_cache_requirements.html)
667
-
- [Version catalogs](https://docs.gradle.org/9.8.2/userguide/version_catalogs.html) (docs like them - **this repo does not**)
- [Configuration cache](https://docs.gradle.org/9.9.0/userguide/configuration_cache.html) and its [requirements](https://docs.gradle.org/9.9.0/userguide/configuration_cache_requirements.html)
668
+
- [Version catalogs](https://docs.gradle.org/9.9.0/userguide/version_catalogs.html) (docs like them - **this repo does not**)
0 commit comments