forked from keygenqt/kmm-GitHubViewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
68 lines (59 loc) · 1.95 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
56
57
58
59
60
61
62
63
64
65
66
67
68
buildscript {
val kotlinVersion: String by project
val gradleVersion: String by project
val hiltVersion: String by project
val crashlyticsPluginVersion: String by project
val buildkonfigVersion: String by project
repositories {
google()
gradlePluginPortal()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:$gradleVersion")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
classpath("com.google.dagger:hilt-android-gradle-plugin:$hiltVersion")
classpath("com.google.firebase:firebase-crashlytics-gradle:$crashlyticsPluginVersion")
classpath("com.codingfeline.buildkonfig:buildkonfig-gradle-plugin:$buildkonfigVersion")
}
}
plugins {
id("com.diffplug.spotless")
id("org.jetbrains.dokka")
}
tasks.withType<org.jetbrains.dokka.gradle.DokkaMultiModuleTask>().configureEach {
outputDirectory.set(rootDir.resolve("docs/api"))
failOnWarning.set(true)
}
subprojects {
apply(plugin = "org.jetbrains.dokka")
apply(plugin = "com.diffplug.spotless")
spotless {
kotlin {
target("**/*.kt")
targetExclude("**/build/**")
ktlint(libs.versions.ktlintVersion.get())
.userData(
mapOf(
"disabled_rules" to "no-wildcard-imports",
)
)
licenseHeaderFile("$rootDir/copyright.txt")
}
format("misc") {
target("**/*.gradle", "**/*.md", "**/.gitignore")
trimTrailingWhitespace()
indentWithSpaces()
endWithNewline()
}
}
tasks.withType<org.jetbrains.dokka.gradle.DokkaTaskPartial>().configureEach {
suppressInheritedMembers.set(true)
dokkaSourceSets {
configureEach {
includes.from("dokka.md")
includeNonPublic.set(true)
}
}
}
}