-
-
Notifications
You must be signed in to change notification settings - Fork 424
Relocation pattern is not a part of the ShadowJar fingerprint #1932
Copy link
Copy link
Closed
Labels
Description
Expected and Results
Changes to the relocation pattern should make the ShadowJar task rerun and should change the build cache fingerprint, but instead currently the ShadowJar task is errouneously up-to-date or is incorrectly pulled from the build cache
Related environment and versions
No response
Reproduction steps
Create the following build script:
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
`java-library`
id("com.gradleup.shadow") version "9.3.1"
}
repositories { mavenCentral() }
dependencies { implementation(kotlin("stdlib", "2.3.0")) }
tasks.withType<ShadowJar>().configureEach {
relocate("kotlin", "foo")
}
- Run
./gradlew :shadowJar -ithe first time. The task runs as expected and relocateskotlinpackage tofoo - Change relocation pattern from
footobar - Rerun
./gradlew :shadowJar -iand the task will be incorrectly up-to-date
A similar issue occurs in the build cache reuse scenario
Anything else?
It seems this entity should have the pattern as an @Input
Reactions are currently unavailable