Added
- Support relocating Groovy extensions in Module descriptors. (#1705)
- Add extensions for
Iterable<Relocator>
. (#1710) - Support relocating list of types in
RelocatorRemapper
. (#1714) - Add
mainClass
property intoShadowJar
. (#1722)tasks.shadowJar { // This property will be used as a fallback if there is no explicit `Main-Class` attribute set. mainClass = "my.Main" }
- Honor
executableDir
andapplicationName
inapplication
extension. (#1740)
This is useful when you want to customize the output directory of the start scripts and the application distribution. - Provide more task accessors in
ShadowApplicationPlugin.Companion
. (#1771) - Support relocating Kotlin module files. (#1539)
The current implementation relocates all properties inKotlinModuleMetadata
butKmModule.optionalAnnotationClasses
due to very limited usage of it. See more discussion here. - Allow overriding
BUNDLING_ATTRIBUTE
in GMM. (#1773)
Theorg.gradle.dependency.bundling
in shadowed JAR's Gradle Module Metadata is set toshadowed
by default.
You can override it for now by:shadow { bundlingAttribute = Bundling.EMBEDDED }
Changed
- Merge Gradle Module descriptors into the modern
META-INF
path. (#1706)
The Gradle Module descriptors (org.codehaus.groovy.runtime.ExtensionModule
files) defined underMETA-INF/services/
andMETA-INF/groovy
will be merged intoMETA-INF/groovy/org.codehaus.groovy.runtime.ExtensionModule
. - Move injecting
Class-Path
manifest attr logic fromdoFirst
intocopy
. (#1720) - Move injecting
Main-Class
manifest attr logic fromdoFirst
intocopy
. (#1724) - Deprecate
InheritManifest
. (#1722) - Use default
JavaExec
error message when main class is not set. (#1725) - Update
RelocatorRemapper
class pattern to cover more Java method descriptors. (#1731) - Stop using start script templates bundled in Shadow. (#1738)
- Bump min Java requirement to 17. (#1744)
- Require most optional properties non-null. (#1745)
- Make assemble depend on shadowJar even if it is added later. (#1766)
Fixed
- Fix excluding dependencies whose versions contain
+
. (#1597)