-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathbuild.gradle.kts
32 lines (25 loc) · 910 Bytes
/
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
import org.jetbrains.dokka.gradle.DokkaMultiModuleTask
plugins {
id("com.android.application") version "7.4.2" apply false
id("com.android.library") version "7.4.2" apply false
id("org.jetbrains.kotlin.android") version "1.8.22" apply false
id("com.diffplug.spotless") version "6.14.0"
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
id("org.jetbrains.dokka") version "1.7.20"
}
tasks.withType(DokkaMultiModuleTask::class).configureEach {
outputDirectory.set(rootProject.file("docs/api"))
failOnWarning.set(true)
}
apply(from = "${rootDir}/scripts/generate-dokka.gradle")
subprojects {
apply(plugin = "com.diffplug.spotless")
spotless {
kotlin {
target("**/*.kt")
targetExclude("$buildDir/**/*.kt")
ktlint("0.48.2")
licenseHeaderFile(rootProject.file("spotless/copyright.kt"))
}
}
}