You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow opting out of shadowRuntimeElements variant. (#1662)
shadow {
// Disable publishing `shadowRuntimeElements` as an optional variant of the `java` component.
addShadowVariantIntoJavaComponent =false
}
// configuration must be done in the `afterEvaluate` phase, you cannot access `shadowRuntimeElements` before that.val javaComponent = components["java"] asAdhocComponentWithVariants
javaComponent.withVariantsFromConfiguration(configurations["shadowRuntimeElements"]) {
// See more details in https://github.com/GradleUp/shadow/pull/1662.
skip()
}
Allow opting out of TARGET_JVM_VERSION_ATTRIBUTE. (#1674)
shadow {
// Disable adding `TargetJvmVersion` attribute into the Gradle Module Metadata of the shadowed jar.
addTargetJvmVersionAttribute =false
}
Allow opting out of Multi-Release attribute. (#1675)
tasks.shadowJar {
// Disable adding `Multi-Release` attribute into the manifest of the shadowed jar.
addMultiReleaseAttribute =false
}
Changed
Don't inject TargetJvmVersion attribute when automatic JVM targeting is disabled. (#1666)
Do not write modified class files for no-op relocations. (#1694)
BREAKING CHANGE: The introduction of some afterEvaluate usages may cause configuration issues in rare cases.