Skip to content

Releases: GradleUp/shadow

9.6.1

Choose a tag to compare

@github-actions github-actions released this 22 Jul 01:12
185da5d

Changed

  • Use GradleException for expected build failures. (#2113)

Fixed

  • Preserve repeated lines in R8 rule files when using minimize { r8 { ... } }. (#2115)

9.6.0

Choose a tag to compare

@github-actions github-actions released this 16 Jul 08:10
fb36668

Added

  • Extract R8 rules from dependency JARs when using minimize { r8 { ... } }. (#2089)

Changed

  • Rename ShadowDslMarker to ShadowDsl. (#2091)
  • POTENTIALLY BREAKING: Apply @ShadowDsl to ShadowJar, ResourceTransformer, DependencyFilter, and Relocator. (#2090)
    This restricts nested DSL configuration blocks from implicitly calling outer receiver APIs in Kotlin script files.

Fixed

  • Validate ZIP entry names to prevent Zip Slip path traversal.
  • Avoid resolving unused R8 dependency. (#2101)

9.5.1

Choose a tag to compare

@github-actions github-actions released this 06 Jul 10:51
c33612d

Fixed

  • Fix eager calls for toolchainSpec in Kotlin DSL. (#2087)

9.5.0

Choose a tag to compare

@github-actions github-actions released this 06 Jul 06:19
6e00cb7

Added

  • Check DuplicatesStrategy for merging transformers. (#2026)
    This will log warnings when an incompatible DuplicatesStrategy (e.g., EXCLUDE) is applied in Gradle configuration for built-in ResourceTransformers.
  • Add KotlinModuleMetadataTransformer. (#2073)
  • Add R8 as an opt-in minimize { r8 { ... } } tool for shrinking the final shadowed JAR. (#2077)

Changed

  • Bump min Gradle requirement to 9.2.0. (#2057)
  • Remove afterEvaluate when adding variants. (#2056)

Deprecated

  • Deprecate enableKotlinModuleRemapping for ShadowJar. (#2073)
    Apply KotlinModuleMetadataTransformer explicitly to support relocating inside Kotlin module metadata files.
    This flag will be disabled and removed in the next major release.
  • Deprecate everything under ShadowCopyAction. (#2083)

Fixed

  • Fix the conflicts when using afterEvaluate with other plugins. (#2055)

9.4.3

Choose a tag to compare

@github-actions github-actions released this 26 Jun 03:01
44c6ce1

Changed

  • Update dependencies for resolving CVEs. (#2069)

9.4.2

Choose a tag to compare

@github-actions github-actions released this 28 May 04:03
29c432a

Changed

  • Update jdependency to support Java 27. (#2033)

8.3.11

Choose a tag to compare

@github-actions github-actions released this 28 May 06:06
1aa766c

Warning

Only Gradle 9 support is being backported to this version. No additional features or crucial bug fixes will be included in the 8.x line. Please migrate to Shadow 9 as soon as possible.

Changed

  • Update jdependency to support Java 27. (#2040)

Deprecated

  • Deprecate KnowsTask, it will be removed in the next major release. (#1957)

Fixed

  • Fix compatibility with Isolated Projects. (#1947)
  • Fix interaction with Gradle artifact transforms. (#1949)
  • Fix Log4j2PluginsCacheFileTransformer not working for merging Log4j2Plugins.dat files. (#1955)

9.4.1

Choose a tag to compare

@github-actions github-actions released this 27 Mar 09:08
f98d8f2

Changed

  • Update Kotlin to 2.3.20. (#1978)

9.4.0

Choose a tag to compare

@github-actions github-actions released this 15 Mar 02:04
e51f3e7

Added

  • Support Isolated Projects. (#1139)

Changed

  • Allow opting out of adding shadowJar into assemble lifecycle. (#1939)
    shadow {
      // Disable making `assemble` task depend on `shadowJar`. This is enabled by default.
      addShadowJarToAssembleLifecycle = false
    }
  • Stop catching ZipException when writing entries. (#1970)

Fixed

  • Fix interaction with Gradle artifact transforms. (#1345)
  • Fix skipStringConstants per-relocator behavior in mapName. (#1968)
  • Fix failing for non-existent class directories. (#1976)

9.3.2

Choose a tag to compare

@Goooler Goooler released this 27 Feb 12:21
929f027

Changed

  • Stop moving gradleApi dependency from api to compileOnly for Gradle 9.4+. (#1919)
  • Log warnings for duplicates in the final JAR. (#1931)

Fixed

  • Fix relocation patterns not included in task fingerprint. (#1933)