-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
59 lines (48 loc) · 1.5 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
import org.jetbrains.dokka.gradle.DokkaPlugin
import org.jetbrains.dokka.gradle.DokkaTaskPartial
import ru.mipt.npm.gradle.Maturity
import java.net.URL
plugins {
id("ru.mipt.npm.gradle.project")
kotlin("multiplatform") apply false
}
allprojects {
group = "space.kscience"
version = "0.0.1"
repositories {
mavenCentral()
mavenLocal()
}
}
subprojects {
val p = this@subprojects
if (p.name != "demo") apply<DokkaPlugin>()
afterEvaluate {
tasks.withType<DokkaTaskPartial> {
dependsOn(tasks["assemble"])
dokkaSourceSets.configureEach {
val readmeFile = p.projectDir.resolve("README.md")
if (readmeFile.exists()) includes.from(readmeFile)
val kotlinDirPath = "src/$name/kotlin"
val kotlinDir = file(kotlinDirPath)
if (kotlinDir.exists()) sourceLink {
localDirectory.set(kotlinDir)
remoteUrl.set(
URL("https://github.com/mipt-npm/${rootProject.name}/tree/master/${p.name}/$kotlinDirPath")
)
}
externalDocumentationLink(
"https://api.ktor.io/ktor-io/",
"https://api.ktor.io/ktor-io/ktor-io/package-list",
)
}
}
}
readme {
maturity = Maturity.PROTOTYPE
}
}
ksciencePublish {
vcs("https://github.com/mipt-npm/${rootProject.name}")
space(publish = true)
}