diff --git a/api/shadow.api b/api/shadow.api index 49a01ee0c..4a67b24a3 100644 --- a/api/shadow.api +++ b/api/shadow.api @@ -203,6 +203,7 @@ public abstract interface class com/github/jengelman/gradle/plugins/shadow/tasks } public class com/github/jengelman/gradle/plugins/shadow/tasks/ShadowCopyAction : org/gradle/api/internal/file/copy/CopyAction { + public static final field CONSTANT_TIME_FOR_ZIP_ENTRIES J public static final field Companion Lcom/github/jengelman/gradle/plugins/shadow/tasks/ShadowCopyAction$Companion; public fun (Ljava/io/File;Lkotlin/jvm/functions/Function1;Ljava/util/Set;Ljava/util/Set;Ljava/util/Set;ZZZLjava/lang/String;)V public fun execute (Lorg/gradle/api/internal/file/copy/CopyActionProcessingStream;)Lorg/gradle/api/tasks/WorkResult; diff --git a/src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/tasks/ShadowCopyAction.kt b/src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/tasks/ShadowCopyAction.kt index fd8f98dfd..e59b24df4 100644 --- a/src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/tasks/ShadowCopyAction.kt +++ b/src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/tasks/ShadowCopyAction.kt @@ -285,12 +285,21 @@ constructor( get() = this::class.java.getDeclaredField("entries").apply { isAccessible = true }.get(this).cast() + @Deprecated( + message = + "Use `CONSTANT_TIME_FOR_ZIP_ENTRIES` const instead. This will be removed in Shadow 10.", + replaceWith = ReplaceWith("CONSTANT_TIME_FOR_ZIP_ENTRIES"), + ) + @Suppress("FunctionName") // For ABI compatibility. + public fun getCONSTANT_TIME_FOR_ZIP_ENTRIES(): Long = CONSTANT_TIME_FOR_ZIP_ENTRIES + /** * A copy of * [org.gradle.api.internal.file.archive.ZipEntryConstants.CONSTANT_TIME_FOR_ZIP_ENTRIES]. * * 1980-02-01 00:00:00 (318182400000). */ + @JvmField public val CONSTANT_TIME_FOR_ZIP_ENTRIES: Long = GregorianCalendar(1980, 1, 1, 0, 0, 0).timeInMillis }