-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.gradle.kts
41 lines (33 loc) · 1.16 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
39
40
41
/*
* Copyright (c) 2023-2024 Oleg Yukhnevich. Use of this source code is governed by the Apache 2.0 license.
*/
import org.jetbrains.kotlin.gradle.targets.js.nodejs.*
import org.jetbrains.kotlin.gradle.targets.js.npm.*
plugins {
alias(libs.plugins.kotlin.dokka)
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.kotlin.plugin.serialization) apply false
id("ckbuild.use-openssl")
}
plugins.withType<NodeJsRootPlugin> {
// ignore package lock
extensions.configure<NpmExtension> {
lockFileDirectory.set(layout.buildDirectory.dir("kotlin-js-store"))
packageLockMismatchReport.set(LockFileMismatchReport.NONE)
}
}
tasks.dokkaHtmlMultiModule {
outputDirectory.set(file("docs/api"))
}
tasks.register<Copy>("mkdocsCopy") {
into(rootDir.resolve("docs"))
from("README.md")
from("CHANGELOG.md")
}
tasks.register<Exec>("mkdocsBuild") {
dependsOn(tasks.dokkaHtmlMultiModule)
dependsOn(tasks.named("mkdocsCopy"))
dependsOn(subprojects.mapNotNull { it.tasks.findByName("mkdocsCopy") })
commandLine("mkdocs", "build", "--clean", "--strict")
}