Shadowed JARs should not be added to manifest Class-Path header.
Manifest-Version: 1.0
Implementation-Title: junit-jupiter-params
Automatic-Module-Name: org.junit.jupiter.params
Build-Date: 2017-08-23
Implementation-Version: 5.0.0-RC3
Built-By: JUnit Team
Specification-Vendor: junit.org
Specification-Title: junit-jupiter-params
Class-Path: univocity-parsers-2.5.1.jar
Implementation-Vendor: junit.org
Build-Revision: e0af182b1440da44af16a7181cd3b03d1a3fe82d
Build-Time: 20:40:28.393+0200
Created-By: 1.8.0_131 (Oracle Corporation 25.131-b11)
Specification-Version: 5.0.0
Original JUnit Issue
junit-team/junit-framework#1044
Code in Question
https://github.com/johnrengelman/shadow/blob/5e89b3d650f964e62a1b617223ee25d9001fa3d6/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/ShadowJavaPlugin.groovy#L52-L54
Expected Behavior
Shadowed JARs should not be added to manifest Class-Path header.
Actual Behavior
Shadowed JARs are added to manifest Class-Path header.
Gradle Build Script(s)
https://github.com/junit-team/junit5/blob/master/junit-jupiter-params/junit-jupiter-params.gradle
Content of MANIFEST.MF