api / org.gradle.api.tasks.bundling / AbstractArchiveTask / setReproducibleFileOrder

setReproducibleFileOrder

@Incubating open fun setReproducibleFileOrder(reproducibleFileOrder: Boolean): Unit

Specifies whether to enforce a reproducible file order when reading files from directories.

Gradle will then walk the directories on disk which are part of this archive in a reproducible order independent of file systems and operating systems. This helps Gradle reliably produce byte-for-byte reproducible archives.

Parameters

reproducibleFileOrder - true if the files should read from disk in a reproducible order.

Since
3.4