[Git][reproducible-builds/reproducible-website][master] Move archive stuff out of SOURCE_DATE_EPOCH at least.
Chris Lamb (@lamby)
gitlab at salsa.debian.org
Mon Apr 28 17:49:50 UTC 2025
Chris Lamb pushed to branch master at Reproducible Builds / reproducible-website
Commits:
cbbe269d by Chris Lamb at 2025-04-28T10:49:37-07:00
Move archive stuff out of SOURCE_DATE_EPOCH at least.
- - - - -
2 changed files:
- _docs/archives.md
- _docs/source-date-epoch.md
Changes:
=====================================
_docs/archives.md
=====================================
@@ -226,3 +226,32 @@ version of `libtool.m4` and `ltmain.sh`, which fixed this issue independently
in `d41cd173e23`. This aforementioned change was first included in version
9.1.0, meaning that the reproducibility issue remains in GCC versions below
that.
+
+## Gradle
+
+With [Kotlin](https://kotlinlang.org/) (recommended):
+
+```kotlin
+tasks.withType<AbstractArchiveTask>().configureEach {
+ isPreserveFileTimestamps = false
+ isReproducibleFileOrder = true
+ dirPermissions {
+ unix("rwxr-xr-x")
+ }
+ filePermissions {
+ unix("rw-r--r--")
+ }
+}
+```
+
+The Gradle website also has information on [working with reproducible archives](https://docs.gradle.org/current/userguide/working_with_files.html#sec:reproducible_archives).
+
+With Groovy:
+
+```groovy
+// Normalizes the ZIP and JAR archives
+tasks.withType(Zip) {
+ preserveFileTimestamps = false
+ reproducibleFileOrder = true
+}
+```
=====================================
_docs/source-date-epoch.md
=====================================
@@ -348,23 +348,6 @@ let build_date =
### Java / gradle
-With [Kotlin](https://kotlinlang.org/) (recommended):
-
-```kotlin
-tasks.withType<AbstractArchiveTask>().configureEach {
- isPreserveFileTimestamps = false
- isReproducibleFileOrder = true
- dirPermissions {
- unix("rwxr-xr-x")
- }
- filePermissions {
- unix("rw-r--r--")
- }
-}
-```
-
-The Gradle website also has information on [working with reproducible archives](https://docs.gradle.org/current/userguide/working_with_files.html#sec:reproducible_archives).
-
Legacy [Groovy](https://groovy-lang.org/) implementation:
```groovy
@@ -464,18 +447,6 @@ Add the following property in the `pom.xml` file:
</properties>
```
-### Gradle
-
-Set the following properties for the Zip Task that creates the `.jar` file:
-
-```groovy
-// Normalizes the ZIP and JAR archives
-tasks.withType(Zip) {
- preserveFileTimestamps = false
- reproducibleFileOrder = true
-}
-```
-
### JDK
Builds of OpenJDK version 19 or later [support the following new option](https://bugs.openjdk.org/browse/JDK-8276766) in the `jar` and `jmod` commands:
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/-/commit/cbbe269dd50b21661fad70d90645de7bdf0ccc14
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/-/commit/cbbe269dd50b21661fad70d90645de7bdf0ccc14
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20250428/a75303c0/attachment.htm>
More information about the rb-commits
mailing list