GradleUp / shadow

Gradle plugin to create fat/uber JARs, apply file transforms, and relocate packages for applications and libraries. Gradle version of Maven's Shade plugin.
https://www.gradleup.com/shadow/
Apache License 2.0
3.77k stars 395 forks source link

Changes to exclude(...) ignored unless clean build is forced #1005

Open ninja- opened 1 month ago

ninja- commented 1 month ago

Expected and Results

I added exclude("com/package/**") to shadowJar configuration.
It worked fine on my local PC because I force a clean build each time, but CI was stubbornly producing jar files with excluded files in the jar. It only produced the correct jar after wiping all caches from CI.

Related environent and versions

Gradle 8.10, Linux, Shadow 8.3.3, Gradle build cache

Reproduction steps

No response

Anything else?

No response