generated from arrow-kt/Arrow-JVM-Template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
47 lines (42 loc) · 1.4 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
import org.jetbrains.dokka.gradle.DokkaTaskPartial
import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension
plugins {
base
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.kotest.multiplatform)
alias(libs.plugins.dokka)
alias(libs.plugins.kover)
alias(libs.plugins.publish)
alias(libs.plugins.knit)
alias(libs.plugins.spotless)
}
repositories {
mavenCentral()
}
subprojects {
this@subprojects.tasks.withType<DokkaTaskPartial>().configureEach {
this@subprojects.extensions.findByType<KotlinProjectExtension>()?.sourceSets?.forEach { kotlinSourceSet ->
dokkaSourceSets.named(kotlinSourceSet.name) {
includes.from("README.MD")
perPackageOption {
matchingRegex.set(".*\\.internal.*")
suppress.set(true)
}
externalDocumentationLink("https://kotlinlang.org/api/kotlinx.coroutines/")
skipDeprecated.set(true)
reportUndocumented.set(false)
val baseUrl: String = checkNotNull(properties["pom.smc.url"]?.toString())
kotlinSourceSet.kotlin.srcDirs.filter { it.exists() }.forEach { srcDir ->
sourceLink {
localDirectory.set(srcDir)
remoteUrl.set(uri("$baseUrl/blob/main/${srcDir.relativeTo(rootProject.rootDir)}").toURL())
remoteLineSuffix.set("#L")
}
}
}
}
}
tasks.withType<AbstractPublishToMaven> {
dependsOn(tasks.withType<Sign>())
}
}