aboutsummaryrefslogtreecommitdiff
path: root/build-logic/src/main/kotlin/dokkabuild.base.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'build-logic/src/main/kotlin/dokkabuild.base.gradle.kts')
-rw-r--r--build-logic/src/main/kotlin/dokkabuild.base.gradle.kts23
1 files changed, 23 insertions, 0 deletions
diff --git a/build-logic/src/main/kotlin/dokkabuild.base.gradle.kts b/build-logic/src/main/kotlin/dokkabuild.base.gradle.kts
new file mode 100644
index 00000000..407a9800
--- /dev/null
+++ b/build-logic/src/main/kotlin/dokkabuild.base.gradle.kts
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
+ */
+
+import dokkabuild.DokkaBuildProperties
+
+/**
+ * A convention plugin that sets up common config and sensible defaults for all subprojects.
+ *
+ * It provides the [DokkaBuildProperties] extension, for accessing common build properties.
+ */
+
+plugins {
+ base
+}
+
+extensions.create<DokkaBuildProperties>(DokkaBuildProperties.EXTENSION_NAME)
+
+tasks.withType<AbstractArchiveTask>().configureEach {
+ // https://docs.gradle.org/current/userguide/working_with_files.html#sec:reproducible_archives
+ isPreserveFileTimestamps = false
+ isReproducibleFileOrder = true
+}