Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/changes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

- Fix interaction with Gradle artifact transforms. ([#1345](https://github.com/GradleUp/shadow/pull/1345))
- Fix `skipStringConstants` per-relocator behavior in `mapName`. ([#1968](https://github.com/GradleUp/shadow/pull/1968))
- Fix failing for non-existent class directories. ([#1976](https://github.com/GradleUp/shadow/pull/1976))

## [9.3.2](https://github.com/GradleUp/shadow/releases/tag/9.3.2) - 2026-02-27

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,25 @@ class JavaPluginsTest : BasePluginTest() {
}
}

@Issue("https://github.com/GradleUp/shadow/issues/1975")
@Test
fun skipNonExistentDependencyDirectory() {
val nonExistentDir = projectRoot.resolve("non-existent-dir")

projectScript.appendText(
"""
dependencies {
${implementationFiles(nonExistentDir)}
}
"""
.trimIndent()
)

val result = runWithSuccess(shadowJarPath)

assertThat(result.task(shadowJarPath)).isNotNull().transform { it.outcome }.isEqualTo(SUCCESS)
}

@Issue("https://github.com/GradleUp/shadow/issues/915")
@Test
fun failBuildIfProcessingBadJar() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,9 @@ public abstract class ShadowJar : Jar() {
override fun copy() {
includedDependencies.files.forEach { file ->
when {
!file.exists() -> {
logger.info("Skipping non-existent dependency: {}", file)
}
file.isDirectory -> {
from(file)
}
Expand Down
Loading