Commit ad682e5
authored
build(gradle): enable configuration cache, drop configuration-on-demand (#972)
* build(gradle): enable configuration cache, drop configuration-on-demand
Turn on org.gradle.configuration-cache and remove the now-superseded
org.gradle.configureondemand (configuration-on-demand is incompatible with
the configuration cache). Builds on the cross-project config removal from
#971, which cleared the root-script barriers to a cacheable configuration
phase.
Validated locally: full configuration of all modules succeeds with zero
configuration-cache problems, the entry is reused across runs, and a module
unit test executes and reuses the cache. Problems fail the build by default,
so CI enforces a clean configuration phase. This is also the prerequisite for
enabling Isolated Projects later.
* build(gradle): make root-dir access Isolated Projects-safe
Replace cross-project root access that Isolated Projects forbids with the
IP-safe equivalents, without changing behavior:
- compose convention plugin & app: rootProject.layout.projectDirectory ->
isolated.rootProject.projectDirectory for the stability config file.
- ContributorsSignatory: take the root directory as a File instead of a
Project, so callers no longer invoke Project.file on the root project.
Path resolution is unchanged (relative against root, absolute as-is).
Verified under the configuration cache (already enabled): full configuration
succeeds with zero problems and the entry reuses cleanly. With these in place,
flipping org.gradle.unsafe.isolated-projects drops from 356 problems to a single
remaining AGP-internal access in com.android.application, which is upstream and
will clear with a future AGP that fully supports Isolated Projects. The IP flag
stays off until then.1 parent f42107f commit ad682e5
5 files changed
Lines changed: 30 additions & 20 deletions
File tree
- apps/flipcash
- app
- benchmark
- build-logic/convention/src/main/kotlin
- buildSrc/src/main/java
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
128 | 129 | | |
129 | | - | |
| 130 | + | |
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 | | |
26 | | - | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | | - | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
19 | | - | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
0 commit comments