-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
38 lines (33 loc) · 1.25 KB
/
build.gradle.kts
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
31
32
33
34
35
36
37
38
// Copyright (C) 2023 Reece H. Dunn. SPDX-License-Identifier: Apache-2.0
import org.jetbrains.dokka.base.DokkaBase
import org.jetbrains.dokka.base.DokkaBaseConfiguration
import org.jetbrains.dokka.gradle.DokkaMultiModuleTask
buildscript {
dependencies {
classpath(Dependency.DokkaBase)
}
}
allprojects {
repositories {
mavenCentral()
// Enable mavenLocal for locally deployed snapshot builds.
// NOTE: Using this before mavenCentral can cause build issues, e.g. being
// unable to resolve kotlin-test dependency variants.
mavenLocal()
}
}
plugins {
kotlin("multiplatform") version Version.Plugin.KotlinMultiplatform
id("org.jetbrains.dokka") version Version.Plugin.Dokka
}
// Workaround for generating documentation. The root project needs kotlin to be
// configured for at least one multiplatform target, otherwise dokka will report
// "Nothing to document" in the dokkaHtml and dokkaHtmlPartial tasks.
kotlin {
jvm()
}
tasks.withType<DokkaMultiModuleTask>().configureEach {
pluginConfiguration<DokkaBase, DokkaBaseConfiguration> {
footerMessage = "Copyright © ${ProjectMetadata.Copyright.Year} ${ProjectMetadata.Copyright.Owner}"
}
}