forked from readium/kotlin-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
55 lines (45 loc) · 1.52 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* Copyright 2021 Readium Foundation. All rights reserved.
* Use of this source code is governed by the BSD-style license
* available in the top-level LICENSE file of the project.
*/
import org.jetbrains.dokka.gradle.DokkaTaskPartial
plugins {
id("com.android.application") apply false
id("com.android.library") apply false
id("io.github.gradle-nexus.publish-plugin") apply true
id("org.jetbrains.dokka") apply true
id("org.jetbrains.kotlin.android") apply false
id("org.jlleitschuh.gradle.ktlint") apply true
}
apply(from = "$rootDir/scripts/publish-root.gradle")
ext {
set("publish.groupId", "org.readium.kotlin-toolkit")
set("publish.version", "2.3.0")
}
subprojects {
apply(plugin = "org.jlleitschuh.gradle.ktlint")
ktlint {
android.set(true)
disabledRules.add("no-wildcard-imports")
disabledRules.add("max-line-length")
}
}
tasks.register("clean", Delete::class).configure {
delete(rootProject.buildDir)
}
tasks.register("cleanDocs", Delete::class).configure {
delete("${project.rootDir}/docs/readium", "${project.rootDir}/docs/index.md", "${project.rootDir}/site")
}
tasks.withType<DokkaTaskPartial>().configureEach {
dokkaSourceSets {
configureEach {
reportUndocumented.set(false)
skipEmptyPackages.set(false)
skipDeprecated.set(true)
}
}
}
tasks.named<org.jetbrains.dokka.gradle.DokkaMultiModuleTask>("dokkaGfmMultiModule").configure {
outputDirectory.set(file("${projectDir.path}/docs"))
}