-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle.kts
33 lines (27 loc) · 1.03 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
allprojects {
group = "org.kotools"
repositories.mavenCentral()
}
plugins {
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.dokka)
alias(libs.plugins.kotools.types.documentation)
}
private val projectCommercialName: String = "Kotools Types"
documentation.moduleName = projectCommercialName
dependencies.dokkaHtmlMultiModulePlugin(libs.dokka.versioning)
private val cleanAll: TaskProvider<Task> by tasks.registering {
description = "Deletes all build directories."
group = "build"
allprojects.map { it.tasks.named("clean") }
.let(this::setDependsOn)
}
private val tag: TaskProvider<Exec> by tasks.registering(Exec::class) {
description = "Creates a Git annotated tag for the current version."
group = "release"
val projectVersion = "$version"
val gitmoji = "\uD83D\uDD16"
val tagMessage = "$gitmoji $projectCommercialName $projectVersion"
setCommandLine("git", "tag", projectVersion, "-s", "-m", tagMessage)
}