Skip to content

Mark CONSTANT_TIME_FOR_ZIP_ENTRIES as const#2074

Merged
Goooler merged 1 commit into
mainfrom
g/20260629/deprecate-const
Jun 29, 2026
Merged

Mark CONSTANT_TIME_FOR_ZIP_ENTRIES as const#2074
Goooler merged 1 commit into
mainfrom
g/20260629/deprecate-const

Conversation

@Goooler

@Goooler Goooler commented Jun 29, 2026

Copy link
Copy Markdown
Member

No description provided.

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 adjusts ShadowCopyAction.CONSTANT_TIME_FOR_ZIP_ENTRIES to be exposed as a true static field on the JVM (via @JvmField), while keeping ABI compatibility by reintroducing the previous getter as a deprecated function.

Changes:

  • Add @JvmField to expose CONSTANT_TIME_FOR_ZIP_ENTRIES as a static field.
  • Add a deprecated getCONSTANT_TIME_FOR_ZIP_ENTRIES() method for ABI compatibility.
  • Update the Kotlin ABI dump (api/shadow.api) to reflect the new static field.

Reviewed changes

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

File Description
src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/tasks/ShadowCopyAction.kt Exposes the timestamp constant as a JVM static field and preserves the old getter as deprecated for ABI compatibility.
api/shadow.api Records the new static field in the public API dump.

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

@Goooler Goooler force-pushed the g/20260629/deprecate-const branch from 9895d9c to 4f3b8ee Compare June 29, 2026 02:51
@Goooler Goooler merged commit 2e34eae into main Jun 29, 2026
4 checks passed
@Goooler Goooler deleted the g/20260629/deprecate-const branch June 29, 2026 02:51
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