-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
35 lines (31 loc) · 1.01 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
import com.tidal.sdk.sdkModules
import java.time.LocalDate
plugins {
alias(libs.plugins.kotlin.dokka)
alias(libs.plugins.tidal.android.application) apply false
alias(libs.plugins.tidal.android.library) apply false
alias(libs.plugins.tidal.kotlin.jvm) apply false
alias(libs.plugins.kotlin.kapt) apply false
alias(libs.plugins.tidal.jvm.platform) apply false
}
tasks.register("printSdkModules") {
doLast {
sdkModules.forEach { println(it.name) }
}
}
sdkModules.forEach {
rootProject.tasks.register("publish-sdk-module-${it.name}") {
(it.subprojects + it).forEach {
it.tasks.findByName("publishToMavenCentral")?.let {
dependsOn(it)
}
}
}
}
tasks.dokkaHtmlMultiModule.configure {
moduleVersion = "bom-${project(":bom").property("version")}"
includes.setFrom("README.md")
pluginsMapConfiguration.set(mapOf("org.jetbrains.dokka.base.DokkaBase" to
"""{"footerMessage": "© ${LocalDate.now().year} TIDAL"}"""
))
}