Skip to content

Commit

Permalink
(doc) Fix docs for preserveFileTimestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
John Engelman committed Sep 30, 2018
1 parent 537e6c5 commit 78356c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/docs/asciidoc/16-reproducible-builds.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ from a source commit that results in a hash identical file.
Gradle supports reproducible JAR creation by setting the timestamps of included files to a consistent value.
Shadow includes support for overriding file timestamps starting in version 4.0.0. By default, Shadow will preserve
the file timestamps when creating the Shadow JAR. To set timestamps to a consistent value (1980/1/1 00:00:00),
set the `preserveFileTimeStamps` property to `false` on the `ShadowJar` task.
set the `preserveFileTimestamps` property to `false` on the `ShadowJar` task.

.Reset file timestamps
[source,groovy,indent=0]
----
shadowJar {
preserveFileTimeStamps = false
preserveFileTimestamps = false
}
----

0 comments on commit 78356c1

Please sign in to comment.