forked from coil-kt/coil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
76 lines (65 loc) · 2.31 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
69
70
71
72
73
74
75
76
import coil.by
import coil.groupId
import coil.versionName
import kotlinx.validation.ApiValidationExtension
import org.jetbrains.dokka.gradle.DokkaMultiModuleTask
import org.jetbrains.dokka.gradle.DokkaTaskPartial
import org.jlleitschuh.gradle.ktlint.KtlintExtension
import java.net.URL
buildscript {
apply(from = "buildSrc/plugins.gradle.kts")
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath(rootProject.extra["androidPlugin"].toString())
classpath(rootProject.extra["kotlinPlugin"].toString())
classpath(rootProject.extra["mavenPublishPlugin"].toString())
classpath(rootProject.extra["dokkaPlugin"].toString())
classpath(rootProject.extra["binaryCompatibilityPlugin"].toString())
classpath(rootProject.extra["ktlintPlugin"].toString())
}
}
apply(plugin = "binary-compatibility-validator")
extensions.configure<ApiValidationExtension> {
ignoredProjects = mutableSetOf("coil-sample", "coil-test")
}
apply(plugin = "org.jetbrains.dokka")
tasks.withType<DokkaMultiModuleTask>().configureEach {
outputDirectory by file("$rootDir/docs/api")
removeChildTasks(listOf(project(":coil-sample"), project(":coil-test")))
}
allprojects {
repositories {
google()
mavenCentral()
}
group = project.groupId
version = project.versionName
apply(plugin = "org.jlleitschuh.gradle.ktlint")
extensions.configure<KtlintExtension>("ktlint") {
version by "0.42.1"
disabledRules by setOf("indent", "max-line-length", "parameter-list-wrapping")
}
tasks.withType<DokkaTaskPartial>().configureEach {
dokkaSourceSets.configureEach {
jdkVersion by 8
skipDeprecated by true
suppressInheritedMembers by true
externalDocumentationLink {
url by URL("https://developer.android.com/reference/")
}
externalDocumentationLink {
url by URL("https://kotlin.github.io/kotlinx.coroutines/")
}
externalDocumentationLink {
url by URL("https://square.github.io/okhttp/3.x/okhttp/")
}
externalDocumentationLink {
url by URL("https://square.github.io/okio/2.x/okio/")
}
}
}
}