Skip to content

update Gradle snippet on SOURCE_DATE_EPOCH page

https://reproducible-builds.org/docs/source-date-epoch/#gradle

The example should be updated to use Kotlin (default for over 2 years), configuration-avoidance and include dirPermissions and filePermissions:

tasks.withType<AbstractArchiveTask>().configureEach {
    isPreserveFileTimestamps = false
    isReproducibleFileOrder = true
    dirPermissions {
        unix("rwxr-xr-x")
    }
    filePermissions {
        unix("rw-r--r--")
    }
}

Maybe also add a link to: https://docs.gradle.org/current/userguide/working_with_files.html#sec:reproducible_archives


More information: https://github.com/gradle/gradle/issues/33296

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information