forked from aallam/openai-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
37 lines (33 loc) · 1.09 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
import com.diffplug.gradle.spotless.SpotlessExtension
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent.*
import org.jetbrains.dokka.gradle.DokkaMultiModuleTask
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
alias(libs.plugins.kotlin.multiplaform) apply false
alias(libs.plugins.kotlinx.serialization) apply false
alias(libs.plugins.kotlinx.binary.validator) apply false
alias(libs.plugins.maven.publish) apply false
alias(libs.plugins.spotless) apply false
alias(libs.plugins.dokka)
}
subprojects {
apply(plugin = "com.diffplug.spotless")
configure<SpotlessExtension> {
kotlin {
target("**/*.kt")
trimTrailingWhitespace()
endWithNewline()
}
}
tasks.withType<Test> {
testLogging {
events(STARTED, PASSED, SKIPPED, FAILED)
exceptionFormat = TestExceptionFormat.FULL
showStandardStreams = false
}
}
}
tasks.withType<DokkaMultiModuleTask>() {
outputDirectory.set(projectDir.resolve("docs"))
}