Skip to content

Commit 35318cd

Browse files
authored
Fix resolving BOM dependencies when minimize is enabled (#1638)
Ports 0187e75.
1 parent b2a225f commit 35318cd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/docs/changes/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
## [Unreleased]
55

6+
**Fixed**
7+
8+
- Fix resolving BOM dependencies when `minimize` is enabled. ([#1638](https://github.com/GradleUp/shadow/pull/1638))
69

710
## [v8.3.9] (2025-08-05)
811

src/main/groovy/com/github/jengelman/gradle/plugins/shadow/internal/UnusedTracker.groovy

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ class UnusedTracker {
7777
apiJars.addAll(dep.files)
7878
} else {
7979
addJar(runtimeConfiguration, dep, apiJars)
80-
apiJars.add(runtimeConfiguration.find { it.name.startsWith("${dep.name}-") } as File)
80+
def jarFile = runtimeConfiguration.find { it.name.startsWith("${dep.name}-") }
81+
if (jarFile != null) {
82+
apiJars.add(jarFile)
83+
}
8184
}
8285
}
8386

0 commit comments

Comments
 (0)