Commit 85ba389
Fix failing for non-existent class directories (#1976)
* Initial plan
* fix: skip non-existent dependency directories in shadowJar task
Fixes #1975. When a project dependency includes a class output directory
that does not exist (e.g., build/classes/java/api from a custom source
set with no Java sources), shadowJar now gracefully skips it instead of
failing with "Cannot expand ZIP ... as it does not exist."
Also adds a functional test to verify the fix.
Co-authored-by: Goooler <10363352+Goooler@users.noreply.github.com>
* Logging for info level
* Update changelog
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Goooler <10363352+Goooler@users.noreply.github.com>
Co-authored-by: Goooler <wangzongler@gmail.com>1 parent 3a24369 commit 85ba389
3 files changed
Lines changed: 23 additions & 0 deletions
File tree
- docs/changes
- src
- functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow
- main/kotlin/com/github/jengelman/gradle/plugins/shadow/tasks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
813 | 813 | | |
814 | 814 | | |
815 | 815 | | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
816 | 835 | | |
817 | 836 | | |
818 | 837 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
454 | 457 | | |
455 | 458 | | |
456 | 459 | | |
| |||
0 commit comments