diff options
author | aSemy <897017+aSemy@users.noreply.github.com> | 2023-03-29 20:36:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-29 20:36:39 +0200 |
commit | e26fc066d524ac81e3495fcf9a3c79f48e827d46 (patch) | |
tree | c2ad3d5bec16b660b7634eb09e3920b26be2296b /build-logic/src/main/kotlin/org/jetbrains/conventions | |
parent | 3c3d2e47abb732a006b899d40162758568c41e34 (diff) | |
download | dokka-e26fc066d524ac81e3495fcf9a3c79f48e827d46.tar.gz dokka-e26fc066d524ac81e3495fcf9a3c79f48e827d46.tar.bz2 dokka-e26fc066d524ac81e3495fcf9a3c79f48e827d46.zip |
Add reproducible archive build config (#2947)
Diffstat (limited to 'build-logic/src/main/kotlin/org/jetbrains/conventions')
-rw-r--r-- | build-logic/src/main/kotlin/org/jetbrains/conventions/base.gradle.kts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/build-logic/src/main/kotlin/org/jetbrains/conventions/base.gradle.kts b/build-logic/src/main/kotlin/org/jetbrains/conventions/base.gradle.kts index a1f6e288..9d9f2545 100644 --- a/build-logic/src/main/kotlin/org/jetbrains/conventions/base.gradle.kts +++ b/build-logic/src/main/kotlin/org/jetbrains/conventions/base.gradle.kts @@ -14,8 +14,13 @@ plugins { val dokkaBuildProperties: DokkaBuildProperties = extensions.create(DokkaBuildProperties.EXTENSION_NAME) - if (project != rootProject) { project.group = rootProject.group project.version = rootProject.version } + +tasks.withType<AbstractArchiveTask>().configureEach { + // https://docs.gradle.org/current/userguide/working_with_files.html#sec:reproducible_archives + isPreserveFileTimestamps = false + isReproducibleFileOrder = true +} |