Skip to content

Commit 5cd54c4

Browse files
committed
refactor: add dokka plugin to all subprojects
1 parent b2cacb6 commit 5cd54c4

File tree

31 files changed

+64
-14
lines changed

31 files changed

+64
-14
lines changed

build.gradle.kts

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,47 @@ plugins {
4848
alias(libs.plugins.dokka)
4949
}
5050

51-
subprojects {
52-
apply(plugin = "org.jetbrains.dokka")
53-
}
5451

5552
dokka {
5653
dokkaPublications.html {
5754
outputDirectory.set(layout.buildDirectory.dir("$rootDir/docs-website/static/api"))
5855
}
5956
}
6057

58+
// Currently cmp-web throws some unresolved symbol errors
59+
// So it is not included in the dokka task
60+
61+
dependencies {
62+
dokka(project(":cmp-shared"))
63+
dokka(project(":cmp-desktop"))
64+
dokka(project(":cmp-android"))
65+
// dokka(project(":cmp-web:"))
66+
dokka(project(":cmp-navigation"))
67+
dokka(project(":core:data"))
68+
dokka(project(":core:domain"))
69+
dokka(project(":core:datastore"))
70+
dokka(project(":core:designsystem"))
71+
dokka(project(":core:ui"))
72+
dokka(project(":core:common"))
73+
dokka(project(":core:network"))
74+
dokka(project(":core:model"))
75+
dokka(project(":core:analytics"))
76+
dokka(project(":core:database:"))
77+
78+
dokka(project(":feature:home"))
79+
dokka(project(":feature:profile"))
80+
dokka(project(":feature:settings"))
81+
82+
dokka(project(":core-base:datastore"))
83+
dokka(project(":core-base:common"))
84+
dokka(project(":core-base:database"))
85+
dokka(project(":core-base:network"))
86+
dokka(project(":core-base:designsystem"))
87+
dokka(project(":core-base:platform"))
88+
dokka(project(":core-base:ui"))
89+
dokka(project(":core-base:analytics"))
90+
}
91+
6192
object DynamicVersion {
6293
fun setDynamicVersion(file: File, version: String) {
6394
val cleanedVersion = version.split('+')[0]

cmp-android/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ plugins {
2020
alias(libs.plugins.aboutLibraries)
2121
alias(libs.plugins.keystore.management)
2222
id("com.google.devtools.ksp")
23+
alias(libs.plugins.dokka)
2324
}
2425

2526
val packageNameSpace: String = libs.versions.androidPackageNamespace.get()

cmp-desktop/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ plugins {
1414
alias(libs.plugins.compose.compiler)
1515
alias(libs.plugins.jetbrainsCompose)
1616
alias(libs.plugins.kotlin.serialization)
17+
alias(libs.plugins.dokka)
1718
}
1819

1920
kotlin {

cmp-navigation/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ plugins {
1212
alias(libs.plugins.kmp.library.convention)
1313
alias(libs.plugins.cmp.feature.convention)
1414
alias(libs.plugins.kmp.koin.convention)
15+
alias(libs.plugins.dokka)
1516
}
1617

1718
kotlin {

cmp-shared/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ plugins {
1212
alias(libs.plugins.kmp.library.convention)
1313
alias(libs.plugins.cmp.feature.convention)
1414
alias(libs.plugins.kotlinCocoapods)
15+
alias(libs.plugins.dokka)
1516
}
1617

1718
kotlin {

cmp-web/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ plugins {
44
alias(libs.plugins.kotlinMultiplatform)
55
alias(libs.plugins.jetbrainsCompose)
66
alias(libs.plugins.compose.compiler)
7+
alias(libs.plugins.dokka)
78
}
89

910
kotlin {

core-base/analytics/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ plugins {
1111
alias(libs.plugins.kmp.library.convention)
1212
alias(libs.plugins.jetbrainsCompose)
1313
alias(libs.plugins.compose.compiler)
14+
alias(libs.plugins.dokka)
1415
}
1516

1617
android {

core-base/common/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
plugins {
1111
alias(libs.plugins.kmp.library.convention)
1212
alias(libs.plugins.kotlin.parcelize)
13+
alias(libs.plugins.dokka)
1314
}
1415

1516
android {

core-base/database/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import org.jetbrains.compose.compose
2020
*/
2121
plugins {
2222
alias(libs.plugins.kmp.library.convention)
23+
alias(libs.plugins.dokka)
2324
}
2425

2526
android {

core-base/datastore/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
plugins {
1111
alias(libs.plugins.kmp.library.convention)
1212
id("kotlinx-serialization")
13+
alias(libs.plugins.dokka)
1314
}
1415

1516
android {

0 commit comments

Comments
 (0)