Given ProjectA and ProjectB
ProjectB depends on ProjectA
ProjectB has the shadow jar plugin applied
Both projects have com.example.ClassX
duplicatesStrategy is configured for the shadowJar task as shown below.
Shadow Version
5.0.0
Gradle Version
5.3.1
Actual Behavior
running shadowJar task is successful and only the ProjectB's ClassX is in the jar (I think, haven't checked if the zip has multiple entries with same path)
Expected Behavior
Either documentation for duplicatesStrategy behavior, or have same behavior as the specified duplicatesStrategy (Fail in this case)
Gradle Build Script(s)
shadowJar {
duplicatesStrategy = DuplicatesStrategy.FAIL
}