-
Notifications
You must be signed in to change notification settings - Fork 472
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
124 lines (115 loc) · 3.54 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
124 lines (115 loc) · 3.54 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
import kotlinx.knit.KnitPluginExtension
import org.gradle.internal.classpath.Instrumented.systemProperty
allprojects {
val version = (property("version") as? String).let { version ->
if (version == null || version == "unspecified") "2.2.0-SNAPSHOT"
else version
}
setProperty("version", version)
systemProperty("arrowVersion", version)
}
buildscript {
repositories {
mavenCentral()
google()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
dependencies {
classpath(libs.kotlinx.knit)
}
}
plugins {
base
id(libs.plugins.kotlin.multiplatform.get().pluginId) apply false
id(libs.plugins.android.kmp.get().pluginId) apply false
id(libs.plugins.spotless.get().pluginId) apply false
id(libs.plugins.animalSniffer.get().pluginId) apply false
id(libs.plugins.dokka.get().pluginId)
alias(libs.plugins.kotlinx.serialization) apply false
id(libs.plugins.publish.get().pluginId) apply false
alias(libs.plugins.compose.jetbrains) apply false
alias(libs.plugins.compose.compiler) apply false
alias(libs.plugins.kotlinx.knit)
id(libs.plugins.kotlinx.kover.get().pluginId)
}
configure<KnitPluginExtension> {
siteRoot = "https://arrow-kt.io/"
rootDir = file("arrow-libs")
files = fileTree(file("arrow-libs")) {
include("**/*.md")
include("**/*.kt")
include("**/*.kts")
exclude("**/build/**")
exclude("**/.gradle/**")
exclude("**/vibe/**")
}
}
tasks.getByName("knitPrepare") {
dependsOn(tasks.dokkaGenerate)
}
dependencies {
kover(projects.arrowAtomic)
kover(projects.arrowAutoclose)
kover(projects.arrowCore)
kover(projects.arrowCoreHighArity)
kover(projects.arrowCache4k)
kover(projects.arrowFunctions)
kover(projects.arrowFxCoroutines)
kover(projects.arrowFxStm)
kover(projects.arrowOptics)
kover(projects.arrowOpticsReflect)
kover(projects.arrowOpticsCompose)
kover(projects.arrowResilience)
kover(projects.arrowCollectors)
kover(projects.arrowEval)
kover(projects.arrowCoreJackson)
kover(projects.arrowCoreJackson2)
kover(projects.arrowCoreRetrofit)
kover(projects.arrowCoreSerialization)
kover(projects.arrowResilienceKtorClient)
kover(projects.arrowRaiseKtorServer)
kover(projects.arrowRaiseKtorServerResources)
kover(projects.arrowCoreResult4k)
kover(projects.arrowExceptionUtils)
kover(projects.suspendapp)
kover(projects.suspendappKtor)
}
dependencies {
dokka(projects.arrowAnnotations)
dokka(projects.arrowAtomic)
dokka(projects.arrowAutoclose)
dokka(projects.arrowCore)
dokka(projects.arrowCoreHighArity)
dokka(projects.arrowCache4k)
dokka(projects.arrowEval)
dokka(projects.arrowFunctions)
dokka(projects.arrowPlatform)
dokka(projects.arrowFxCoroutines)
dokka(projects.arrowFxStm)
dokka(projects.arrowCollectors)
dokka(projects.arrowOptics)
dokka(projects.arrowOpticsReflect)
dokka(projects.arrowOpticsCompose)
dokka(projects.arrowResilience)
dokka(projects.arrowCoreJackson)
dokka(projects.arrowCoreJackson2)
dokka(projects.arrowCoreRetrofit)
dokka(projects.arrowCoreSerialization)
dokka(projects.arrowResilienceKtorClient)
dokka(projects.arrowRaiseKtorServer)
dokka(projects.arrowRaiseKtorServerResources)
dokka(projects.arrowCoreResult4k)
dokka(projects.arrowExceptionUtils)
dokka(projects.suspendapp)
dokka(projects.suspendappKtor)
}
dokka {
dokkaPublications.html {
outputDirectory.set(layout.projectDirectory.dir("docs"))
}
moduleName.set("Arrow")
pluginsConfiguration.html {
customAssets.from("static/img/logo/logo-icon.svg")
footerMessage.set("© Arrow Contributors")
}
}