Skip to content
Snippets Groups Projects
Verified Commit 7fc816fb authored by Leonidas Spyropoulos's avatar Leonidas Spyropoulos
Browse files

build: add support for reproducible builds

As per gradle [docs] add support to remove timestamps and package with
the same order which is required from [reproducible] builds

[docs]: https://docs.gradle.org/current/userguide/working_with_files.html#sec:archives
[reproducible]: https://reproducible-builds.org/



Signed-off-by: default avatarLeonidas Spyropoulos <artafinde@archlinux.org>
parent 963534fd
No related tags found
No related merge requests found
......@@ -6,6 +6,13 @@ repositories {
mavenCentral()
}
tasks.jar {
archiveBaseName.set(rootProject.name)
}
tasks {
jar {
archiveBaseName.set(rootProject.name)
}
withType<AbstractArchiveTask>().configureEach {
setProperty("preserveFileTimestamps", false)
setProperty("reproducibleFileOrder", true)
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment