Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/changes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
- Bump min Gradle requirement to 9.0.0. ([#1801](https://github.com/GradleUp/shadow/pull/1801))
- Deprecate `PreserveFirstFoundResourceTransformer.resources`. ([#1855](https://github.com/GradleUp/shadow/pull/1855))
- Make the output of `PropertiesFileTransformer` reproducible. ([#1861](https://github.com/GradleUp/shadow/pull/1861))
- Deprecate `ShadowCopyAction`. ([#1876](https://github.com/GradleUp/shadow/pull/1876))
It should not be used as a public API. Will be made internal in a future release.

### Fixed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ import org.objectweb.asm.commons.ClassRemapper
/**
* Modified from [org.gradle.api.internal.file.archive.ZipCopyAction.java](https://github.com/gradle/gradle/blob/b893c2b085046677cf858fb3d5ce00e68e556c3a/platforms/core-configuration/file-operations/src/main/java/org/gradle/api/internal/file/archive/ZipCopyAction.java).
*/
public open class ShadowCopyAction(
public open class ShadowCopyAction
@Deprecated("This should not be used as a public API. Will be made internal in a future release.")
constructor(
private val zipFile: File,
private val zosProvider: (File) -> ZipOutputStream,
private val transformers: Set<ResourceTransformer>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ public abstract class ShadowJar : Jar() {
} else {
emptySet()
}
@Suppress("DEPRECATION")
return ShadowCopyAction(
zipFile = archiveFile.get().asFile,
zosProvider = zosProvider,
Expand Down