Document how to make a shadowed JAR the default output of a project#1941
Document how to make a shadowed JAR the default output of a project#1941
Conversation
21ce316 to
19e0f3d
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/JavaPluginsTest.kt
Outdated
Show resolved
Hide resolved
commit 7970269 Author: Goooler <wangzongler@gmail.com> Date: Mon Mar 2 10:37:45 2026 +0800 Reformat commit dcdcbc2 Merge: c1dddbb 09f5081 Author: Goooler <wangzongler@gmail.com> Date: Mon Mar 2 10:34:52 2026 +0800 Merge remote-tracking branch 'origin/main' into g/20260301/doc-shadow-jar-default commit c1dddbb Author: Zongle Wang <wangzongler@gmail.com> Date: Sun Mar 1 21:00:58 2026 +0800 Update src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/JavaPluginsTest.kt Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> commit 2fe8042 Author: Zongle Wang <wangzongler@gmail.com> Date: Sun Mar 1 20:51:38 2026 +0800 Update src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/JavaPluginsTest.kt commit 7cec848 Author: Zongle Wang <wangzongler@gmail.com> Date: Sun Mar 1 20:37:13 2026 +0800 Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> commit a4dc367 Author: Goooler <wangzongler@gmail.com> Date: Sun Mar 1 20:30:35 2026 +0800 Fix test commit 27a89d1 Author: Goooler <wangzongler@gmail.com> Date: Sun Mar 1 20:23:01 2026 +0800 Tweak `important` block commit 0683e67 Author: Goooler <wangzongler@gmail.com> Date: Sun Mar 1 20:14:43 2026 +0800 Merge tests commit 4d76626 Merge: 11ed4d9 7a91558 Author: Goooler <wangzongler@gmail.com> Date: Sun Mar 1 20:12:01 2026 +0800 Merge remote-tracking branch 'origin/copilot/address-issue-1893' into g/20260301/doc-shadow-jar-default # Conflicts: # docs/multi-project/README.md commit 11ed4d9 Author: Goooler <wangzongler@gmail.com> Date: Sun Mar 1 20:11:40 2026 +0800 Polish doc commit 19e0f3d Author: Goooler <wangzongler@gmail.com> Date: Sun Mar 1 19:39:35 2026 +0800 Add tests commit 7053f5d Author: Goooler <wangzongler@gmail.com> Date: Sun Mar 1 19:35:14 2026 +0800 Update doc commit 7a91558 Author: Goooler <wangzongler@gmail.com> Date: Fri Feb 27 20:54:26 2026 +0800 Fix formats commit 37538f0 Author: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Date: Fri Feb 27 12:45:48 2026 +0000 test: add integration tests for shadow JAR as default project artifact (#1893) Co-authored-by: Goooler <10363352+Goooler@users.noreply.github.com> commit 6331f98 Author: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Date: Fri Feb 27 12:30:19 2026 +0000 docs: add section on making shadowed jar the default output in multi-project builds (#1893) Co-authored-by: Goooler <10363352+Goooler@users.noreply.github.com> commit 12cfe62 Author: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Date: Fri Feb 27 12:28:29 2026 +0000 Initial plan
7970269 to
35d39c8
Compare
| """ | ||
| ${getDefaultProjectBuildScript("java-library")} |
There was a problem hiding this comment.
nitpick: alignment seems off.
There was a problem hiding this comment.
This is formatted by ktfmt. We can do nothing.
There was a problem hiding this comment.
Oh, maybe it's ktfmt opinionated style rules that don't follow the "standard" kotlin. I know it's possible to choose the official kotlin ones, as these are not the default.
There was a problem hiding this comment.
Since we require an indent size of two, we have to accept the Google style. To be honest, I prefer ktlint.
There was a problem hiding this comment.
Ah I just saw, the project is using google
Lines 54 to 55 in 6a52076
FYI, the standard kotlin style is settable via .kotlinlangStyle()
There was a problem hiding this comment.
kotlinlangStyle enforces indent size for 4. And it's not much different from the Google style for actual styles.
There was a problem hiding this comment.
Interesting! Thanks for the precision.
There was a problem hiding this comment.
This should be addressed by diffplug/spotless#2872.
Co-authored-by: Brice Dutheil <brice.dutheil@gmail.com>
Closes #1893.