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
tasks.shadowJar {
// This property will be used as a fallback if there is no explicit `Main-Class` attribute set.
mainClass ="my.Main"
}
Honor executableDir and applicationName in application 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 in KotlinModuleMetadata but KmModule.optionalAnnotationClasses due to very limited usage of it. See more discussion here.
Allow overriding BUNDLING_ATTRIBUTE in GMM. (#1773)
The org.gradle.dependency.bundling in shadowed JAR's Gradle Module Metadata is set to shadowed by default. You can override it for now by:
shadow {
bundlingAttribute =Bundling.EMBEDDED
}
Changed
Merge Groovy Module descriptors into the modern META-INF path. (#1706)
The Gradle Module descriptors (org.codehaus.groovy.runtime.ExtensionModule files) defined under META-INF/services/
and META-INF/groovy will be merged into META-INF/groovy/org.codehaus.groovy.runtime.ExtensionModule.
Move injecting Class-Path manifest attr logic from doFirst into copy. (#1720)
Move injecting Main-Class manifest attr logic from doFirst into copy. (#1724)
Deprecate InheritManifest and inheritFrom. (#1722)
tasks.shadowJar {
// Before (deprecated):
manifest.inheritFrom(tasks.jar.get().manifest)
// After (recommended):
manifest.from(tasks.jar.get().manifest)
// Note: You don't need to inherit the manifest from `jar` task as it's done by default for the `shadowJar` task.// But if you want to inherit the manifest for your custom `ShadowJar` task, you still need to do it explicitly.
}
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)