Commit 2197a45
authored
[apksigner] Serialize gradlew: depend on java-source-utils (#7134)
Context: 944f88a
Commit 944f88a enabled parallel builds by removing `dotnet build -m:1`
usage, which allows for faster incremental builds.
One of the problems encountered was around `gradlew` usage: `gradlew`
doesn't support multiple concurrent executions, and will *block*
waiting for other `gradlew` builds to complete, which can result in
timeouts and failed builds.
Commit 944f88a fixed this by "serializing" all projects which
involve `gradlew`:
* `r8.csproj` is the "entrypoint"
* `r8.csproj` references `manifestmerger.csproj`
* `manifestmerger.csproj` references `apksigner.csproj`
This arrangement would cause `dotnet build` to sequentially build
`r8.csproj`, `manifestmerger.csproj`, and `apksigner.csproj`, ensuring
that only one `gradlew` command was run at a time.
Unfortunately, we overlooked
`external/Java.Interop/tools/java-source-utils/java-source-utils.csproj`.
Thus, we occasionally see the Windows build fail:
Timeout waiting to connect to the Gradle daemon.
…
…/java-source-utils.targets(10,5): error MSB3073: The command
""C:\a\_work\1\s\external\Java.Interop\build-tools\gradle\gradlew" …"
exited with code 1.
Update `apksigner.csproj` to reference `java-source-utils.csproj`,
extending the "sequential order" of `gradlew`-using projects.
This should make the Windows build more reliable.
Additionally, move the `<Target/>`s out of `apksigner.csproj` and
into `apksigner.targets`. This is more consistent with other
projects, and reduces the likelihood of VSMac rewriting (and removing
the formatting of) `apksigner.csproj`.1 parent e161187 commit 2197a45
File tree
3 files changed
+29
-19
lines changed- src
- Mono.Android
- apksigner
3 files changed
+29
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
379 | 378 | | |
380 | 379 | | |
381 | 380 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
30 | 24 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 25 | + | |
38 | 26 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments