Bump com.gradleup.shadow from 8.3.10 to 9.4.1#1613
Conversation
f88bac7 to
d544ebc
Compare
Bumps [com.gradleup.shadow](https://github.com/GradleUp/shadow) from 8.3.10 to 9.4.1. - [Release notes](https://github.com/GradleUp/shadow/releases) - [Commits](GradleUp/shadow@8.3.10...9.4.1) --- updated-dependencies: - dependency-name: com.gradleup.shadow dependency-version: 9.4.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
d544ebc to
da8620b
Compare
|
A newer version of com.gradleup.shadow exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged. |
|
@copilot Why is CI failing? |
The CI failures are not related to this PR's changes. Every failing job shows the same transient infrastructure error during Java setup: HTTP 520 is a Cloudflare "Unknown Error" — it means the JDK download endpoint was temporarily unreachable when the jobs ran. Re-running the failed CI jobs should resolve this. |
|
@copilot Look at the CI failures again. I see |
... The failure is caused by a breaking change in Shadow 9.x: it now adds a Fixed in commit 1e36b04 by adding |
|
@copilot It doesn't look like your change achieved anything. CI is still failing with the same error. Can you try again? |
…onsumable Shadow 9.x registers a shadowRuntimeElements consumable variant for every project. During checker:shadowJar minimize(), checker:runtimeClasspath resolves project dependencies (framework, javacutil, etc.) and Gradle may select the shadowRuntimeElements variant, which points to the shadow JAR (e.g. framework-X-all.jar). Since framework:shadowJar has not run, that file does not exist, and UnusedTracker throws 'neither file nor directory'. The previous fix (addShadowVariantIntoJavaComponent = false) only removes the variant from Maven publication; it does not prevent Gradle from selecting it during local inter-project resolution. The correct fix is to mark shadowRuntimeElements as canBeConsumed = false in all subprojects, so Gradle always uses the standard runtimeElements variant (framework.jar) when resolving project dependencies.
The previous fix was wrong — Root cause: Shadow 9.x registers a Fix (commit 2709451): In the |
Bumps com.gradleup.shadow from 8.3.10 to 9.4.1.
Release notes
Sourced from com.gradleup.shadow's releases.
... (truncated)
Commits
f98d8f2Prepare version 9.4.17cf1ac5Note #1978 in changelog539d532Update plugin jetbrains-dokka to v2.2.0 (#1994)0fb99caUpdate actions/deploy-pages action to v5 (#1993)38ec3e2Update Develocity to v4.4.0 (#1992)e519072Update gradle/actions action to v6 (#1990)ca0dd71Update pluginPublish to v2.1.1 (#1989)5a1ab58Update Gradle to v9.4.1 (#1988)69dfdfcImprove file type check for AAR (#1987)1395087Document excluding non-JAR transitive dependencies (#1986)