Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.

Commit 376274e

Browse files
committed
Configure Dokka
1 parent 46b3403 commit 376274e

File tree

5 files changed

+24
-3
lines changed

5 files changed

+24
-3
lines changed

build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ plugins {
2929
apply(plugin = "com.vanniktech.maven.publish.base")
3030

3131
allprojects {
32+
version = project.property("VERSION_NAME") as String
33+
3234
repositories {
3335
google()
3436
mavenCentral()

componentbox/build.gradle.kts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
import com.vanniktech.maven.publish.JavadocJar.Dokka
2+
import com.vanniktech.maven.publish.KotlinMultiplatform
3+
import com.vanniktech.maven.publish.MavenPublishBaseExtension
4+
import org.jetbrains.dokka.gradle.DokkaTask
5+
16
plugins {
27
kotlin("multiplatform")
38
kotlin("plugin.serialization")
@@ -51,4 +56,18 @@ kotlin {
5156

5257
android {
5358
compileSdkVersion(Version.androidCompileSdk)
59+
}
60+
61+
tasks.withType<DokkaTask>().configureEach {
62+
dokkaSourceSets.configureEach {
63+
reportUndocumented.set(false)
64+
skipDeprecated.set(true)
65+
jdkVersion.set(8)
66+
}
67+
}
68+
69+
configure<MavenPublishBaseExtension> {
70+
configure(
71+
KotlinMultiplatform(javadocJar = Dokka("dokkaGfm"))
72+
)
5473
}

desktop/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
kotlin("plugin.serialization")
88
}
99

10-
group = "com.dropbox.componentbox.desktop"
10+
group = "com.dropbox.componentbox"
1111

1212
kotlin {
1313
jvm {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
GROUP=com.dropbox.componentbox
2-
VERSION_NAME=0.0.1-alpha
2+
VERSION_NAME=0.1.0-SNAPSHOT
33

44
POM_ARTIFACT_ID=componentbox
55
POM_NAME=Component Box

samples/discovery/zipline/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
id("org.jetbrains.compose") version Version.composeMultiplatform
88
}
99

10-
group = "com.dropbox.componentbox.discovery.presenters"
10+
group = "com.dropbox.componentbox.discovery"
1111

1212
kotlin {
1313
android()

0 commit comments

Comments
 (0)