-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
45 lines (36 loc) · 1.29 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
/*
* Copyright (c) 2024 Pointyware. Use of this software is governed by the GPL-3.0 license.
*/
import org.jetbrains.dokka.gradle.DokkaMultiModuleTask
import org.jetbrains.dokka.gradle.DokkaTask
import java.net.URL
plugins {
//trick: for the same plugin versions in all sub-modules
alias(libs.plugins.androidApplication).apply(false)
alias(libs.plugins.androidLibrary).apply(false)
alias(libs.plugins.composeMultiplatform).apply(false)
alias(libs.plugins.compose.compiler).apply(false)
alias(libs.plugins.kotlinAndroid).apply(false)
alias(libs.plugins.kotlinMultiplatform).apply(false)
alias(libs.plugins.kotlinJvm).apply(false)
// apply dokka now
alias(libs.plugins.dokka)
alias(libs.plugins.xyz.koin).apply(false)
alias(libs.plugins.xyz.kmp).apply(false)
alias(libs.plugins.artifactRegistry).apply(false)
}
tasks.dokkaHtmlMultiModule {
moduleName.set("XYZ")
}
subprojects {
apply(plugin = "org.jetbrains.dokka")
tasks.withType<DokkaTask>().configureEach {
dokkaSourceSets.configureEach {
sourceLink {
localDirectory.set(projectDir.resolve("src"))
remoteUrl.set(URL("https://github.com/Pointyware/XYZ/tree/main/src"))
remoteLineSuffix.set("#L")
}
}
}
}