Skip to content

Document excluding non-JAR transitive dependencies#1986

Merged
Goooler merged 2 commits intomainfrom
copilot/check-documentation-for-case-1716
Mar 19, 2026
Merged

Document excluding non-JAR transitive dependencies#1986
Goooler merged 2 commits intomainfrom
copilot/check-documentation-for-case-1716

Conversation

Copy link
Contributor

Copilot AI commented Mar 19, 2026

Issue #1716 surfaces a Cannot expand ZIP error when Shadow encounters transitive POM-only metapackage dependencies (e.g. org.graalvm.js:js-community). The existing docs only covered embedding such dependencies via a custom configuration + from(). The simpler fix — just excluding them — was undocumented.

Changes

  • docs/configuration/dependencies/README.md: Adds a new subsection "Excluding Non-JAR Transitive Dependencies" under the existing "Embedding Non-JAR Dependencies" section, showing how to use the dependencies { exclude(...) } block to drop POM-only transitive deps that cause the error.
tasks.shadowJar {
  dependencies {
    exclude(
      // Exclude the transitive dependency on js-community, which can't be unzipped by the task.
      dependency("org.graalvm.js:js-community:.*"),
    )
  }
}

Closes #1716.

Co-authored-by: Goooler <10363352+Goooler@users.noreply.github.com>
Copilot AI changed the title [WIP] Check case #1716 documentation and suggest fix docs: document excluding non-JAR transitive dependencies as fix for "Cannot expand ZIP" error Mar 19, 2026
Copilot AI requested a review from Goooler March 19, 2026 02:31
@Goooler Goooler changed the title docs: document excluding non-JAR transitive dependencies as fix for "Cannot expand ZIP" error Document excluding non-JAR transitive dependencies Mar 19, 2026
@Goooler Goooler marked this pull request as ready for review March 19, 2026 02:33
@Goooler Goooler enabled auto-merge (squash) March 19, 2026 02:36
@Goooler Goooler merged commit 1395087 into main Mar 19, 2026
7 checks passed
@Goooler Goooler deleted the copilot/check-documentation-for-case-1716 branch March 19, 2026 02:38
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.

Update to from "8.1.1" to "9.1.0" leads to "Cannot expand ZIP .... .pom"

2 participants