Document how to make a shadowed JAR the default output of a project#1941
Open
Document how to make a shadowed JAR the default output of a project#1941
Conversation
21ce316 to
19e0f3d
Compare
1 task
This comment was marked as outdated.
This comment was marked as outdated.
1 task
This comment was marked as outdated.
This comment was marked as outdated.
Goooler
commented
Mar 1, 2026
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
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+195
to
+199
| @Issue("https://github.com/GradleUp/shadow/issues/1893") | ||
| @Test | ||
| fun consumeShadowedProjectViaApiElementsAndRuntimeElements() { | ||
| settingsScript.appendText( | ||
| """ |
There was a problem hiding this comment.
consumeShadowedProjectViaApiElementsAndRuntimeElements() only runs :server:jar, which exercises compile-time variant selection (apiElements) but does not validate runtime consumption (runtimeElements). Either add a small assertion that server’s runtimeClasspath resolves client-1.0-all.jar, or rename the test to avoid implying runtime coverage.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1893.