Skip to content

Refactor the AAR-detection#2118

Merged
Goooler merged 3 commits into
mainfrom
g/20260723/update-is-aar
Jul 23, 2026
Merged

Refactor the AAR-detection#2118
Goooler merged 3 commits into
mainfrom
g/20260723/update-is-aar

Conversation

@Goooler

@Goooler Goooler commented Jul 23, 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 refactors the AAR-detection logic used by ShadowJar when adding included dependencies, simplifying the conditional while keeping the same effective behavior (detect AARs and fail with a clear message).

Changes:

  • Replaces the File.isAar() extension function with a File.isAar extension property.
  • Moves the .aar extension check inside the AAR-detection logic and simplifies the when branch to file.isAar.

💡 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 title Update isAar check Refactor the AAR-detection Jul 23, 2026
@Goooler
Goooler merged commit 48136b0 into main Jul 23, 2026
4 checks passed
@Goooler
Goooler deleted the g/20260723/update-is-aar branch July 23, 2026 03:11
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