blob: b485520ac9e9e8a5d660c4aeb8228f068ace34e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/*
* Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package org.jetbrains.conventions
import org.jetbrains.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
}
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
}
|