The Gradle website also has information on [working with reproducible archives](https://docs.gradle.org/current/userguide/working_with_files.html#sec:reproducible_archives).
The Gradle website also has information on [working with reproducible archives](https://docs.gradle.org/current/userguide/working_with_files.html#sec:reproducible_archives).
@@ -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: