Skip to content

Deprecate minimizeJar property - #2124

Merged
Goooler merged 1 commit into
mainfrom
g/20260724/deprecate-minimize-jar-flag
Jul 27, 2026
Merged

Deprecate minimizeJar property#2124
Goooler merged 1 commit into
mainfrom
g/20260724/deprecate-minimize-jar-flag

Conversation

@Goooler

@Goooler Goooler commented Jul 24, 2026

Copy link
Copy Markdown
Member

Aligns with the modifier of enableR8.

Refs #2123.


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

@Goooler Goooler changed the title Deprecate minimizeJar property Deprecate minimizeJar property Jul 24, 2026
@Goooler
Goooler requested a review from Copilot July 24, 2026 09:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 deprecates the ShadowJar.minimizeJar boolean property to steer users toward explicitly enabling minimization via ShadowJar.minimize(), aligning the DSL direction with recent minimization/R8 decoupling work.

Changes:

  • Mark ShadowJar.minimizeJar as deprecated and adjust internal deprecation suppressions.
  • Update tests to suppress deprecation warnings when asserting legacy/default properties.
  • Add an Unreleased changelog entry documenting the deprecation and Shadow 10 plan.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/tasks/ShadowJar.kt Deprecates minimizeJar and updates related internal wiring / DSL surface.
src/test/kotlin/com/github/jengelman/gradle/plugins/shadow/ShadowPropertiesTest.kt Suppresses deprecation warning when asserting minimizeJar default.
docs/changes/README.md Documents the deprecation in the Unreleased section.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/tasks/ShadowJar.kt Outdated
@Goooler
Goooler changed the base branch from g/20260724/explicit-r8-block to main July 27, 2026 02:46
@Goooler
Goooler force-pushed the g/20260724/deprecate-minimize-jar-flag branch from 5e5ecd1 to 8f11065 Compare July 27, 2026 02:59
@Goooler
Goooler requested a review from Copilot July 27, 2026 02:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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

Comment thread src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/tasks/ShadowJar.kt Outdated
@Goooler
Goooler force-pushed the g/20260724/deprecate-minimize-jar-flag branch from 8f11065 to bf393a5 Compare July 27, 2026 03:06
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@Goooler
Goooler force-pushed the g/20260724/deprecate-minimize-jar-flag branch from bf393a5 to 24eee2a Compare July 27, 2026 03:08
@Goooler
Goooler requested a review from Copilot July 27, 2026 03:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@Goooler
Goooler merged commit 49a203d into main Jul 27, 2026
7 checks passed
@Goooler
Goooler deleted the g/20260724/deprecate-minimize-jar-flag branch July 27, 2026 03:16
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.

2 participants