New
9.1.0
Added
- Allow opting out of
shadowRuntimeElementsvariant. (#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"] as AdhocComponentWithVariants 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-Releaseattribute. (#1675)tasks.shadowJar { // Disable adding `Multi-Release` attribute into the manifest of the shadowed jar. addMultiReleaseAttribute = false }