Skip to content

Deprecate InheritManifest, minimizeJar, and TransformerContext.Builder - #2190

Merged
Goooler merged 4 commits into
8.xfrom
g/deprecations
Aug 13, 2026
Merged

Deprecate InheritManifest, minimizeJar, and TransformerContext.Builder#2190
Goooler merged 4 commits into
8.xfrom
g/deprecations

Conversation

@Goooler

@Goooler Goooler commented Aug 13, 2026

Copy link
Copy Markdown
Member

Port deprecation annotations for legacy APIs from main to 8.x.

Deprecations

Original commit on main: f7d8d1b

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

Ports deprecation annotations for legacy APIs from main into the 8.x line so consumers get consistent warnings and migration guidance.

Changes:

  • Deprecates TransformerContext.Builder by replacing Groovy’s @Builder generation with an explicit deprecated Builder + builder() factory.
  • Deprecates legacy minimizeJar property accessors on ShadowJar in favor of minimize().
  • Deprecates InheritManifest and records the deprecations in the Unreleased changelog.

Reviewed changes

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

File Description
src/main/groovy/com/github/jengelman/gradle/plugins/shadow/transformers/TransformerContext.groovy Removes Groovy @Builder and adds an explicit deprecated builder API to preserve compatibility while warning users.
src/main/groovy/com/github/jengelman/gradle/plugins/shadow/tasks/ShadowJar.java Adds deprecated getMinimizeJar/setMinimizeJar accessors pointing users at minimize().
src/main/groovy/com/github/jengelman/gradle/plugins/shadow/tasks/InheritManifest.groovy Deprecates the legacy manifest interface.
src/docs/changes/README.md Documents the newly added deprecations under Unreleased.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/docs/changes/README.md
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@Goooler
Goooler merged commit b02da5e into 8.x Aug 13, 2026
5 checks passed
@Goooler
Goooler deleted the g/deprecations branch August 13, 2026 13:54
@Goooler

Goooler commented Aug 13, 2026

Copy link
Copy Markdown
Member Author

Merged into #2186.

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