-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle.kts
43 lines (34 loc) · 1013 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
33
34
35
36
37
38
39
40
41
42
43
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.dokka.gradle.DokkaTask
plugins {
id("org.jetbrains.dokka") version "1.6.0"
id("com.diffplug.spotless") version "6.0.0"
kotlin("jvm") version "1.6.0" apply false
}
subprojects {
apply(plugin = "org.jetbrains.dokka")
apply(plugin = "com.diffplug.spotless")
tasks.withType<KotlinCompile> {
dependsOn("spotlessApply")
}
tasks.dokkaHtml.configure {
// intentionally hide inherited members, otherwise we will have a lot of functions inherited from JNA
suppressInheritedMembers.set(true)
}
spotless {
kotlin {
ktfmt().kotlinlangStyle()
}
}
}
repositories {
mavenCentral()
}
allprojects {
group = "io.github.oxisto"
version = "0.0.0-SNAPSHOT"
}
tasks.dokkaHtmlCollector.configure{
// intentionally hide inherited members, otherwise we will have a lot of functions inherited from JNA
suppressInheritedMembers.set(true)
}