Skip to content

Allow opting out of Multi-Release attribute#1675

Merged
Goooler merged 7 commits intomainfrom
g/20250820/opt-out-multi-release
Aug 21, 2025
Merged

Allow opting out of Multi-Release attribute#1675
Goooler merged 7 commits intomainfrom
g/20250820/opt-out-multi-release

Conversation

@Goooler
Copy link
Copy Markdown
Member

@Goooler Goooler commented Aug 20, 2025

Closes #1661.


  • CHANGELOG's "Unreleased" section has been updated, if applicable.

@Goooler Goooler force-pushed the g/20250820/opt-out-multi-release branch from a56efa2 to e7f1b6f Compare August 20, 2025 12:20
@Goooler Goooler force-pushed the g/20250820/opt-out-multi-release branch from e7f1b6f to e71c8ee Compare August 20, 2025 13:13
@Goooler Goooler requested a review from Copilot August 21, 2025 02:37
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds the ability to opt out of automatically adding the Multi-Release manifest attribute to shadow JARs. By default, Shadow currently scans dependencies and adds Multi-Release: true to the manifest if any dependency contains this attribute.

  • Introduces a new addMultiReleaseAttribute property that defaults to true for backward compatibility
  • Adds command-line option support for controlling this behavior via --add-multi-release-attribute and --no-add-multi-release-attribute
  • Updates documentation to explain the new configuration option

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
ShadowJar.kt Adds the new addMultiReleaseAttribute property and implements the opt-out logic in the manifest injection method
JavaPluginsTest.kt Adds comprehensive tests for both programmatic and CLI configuration of the new feature
getting-started/README.md Documents the new command-line options
configuration/README.md Adds detailed documentation explaining the new configuration property
changes/README.md Updates the changelog with the new feature
shadow.api Updates the public API file to include the new property

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Goooler Goooler enabled auto-merge (squash) August 21, 2025 02:40
@Goooler Goooler merged commit 400c601 into main Aug 21, 2025
10 checks passed
@Goooler Goooler deleted the g/20250820/opt-out-multi-release branch August 21, 2025 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow disabling Multi-Release

2 participants