Skip to content

Commit d77473e

Browse files
committed
add dokka javadoc.
1 parent d2afce9 commit d77473e

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

charts/build.gradle.kts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,26 @@ val sourcesJar by tasks.registering(Jar::class) {
8080
}
8181
}
8282

83-
val dokkaHtml by tasks.getting(DokkaTask::class) {
83+
tasks.dokkaHtml {
8484
outputDirectory.set(layout.buildDirectory.dir("dokka"))
85+
moduleName.set(getProperty("COMPOSE_CHARTS_NAME"))
86+
dokkaSourceSets {
87+
configureEach {
88+
suppress = false
89+
offlineMode = false
90+
includeNonPublic = false
91+
skipDeprecated = true
92+
skipEmptyPackages = true
93+
noStdlibLink = true
94+
noJdkLink = true
95+
noAndroidSdkLink = false
96+
jdkVersion = JavaVersion.VERSION_1_8.ordinal + 1
97+
}
98+
}
8599
}
86100

101+
val dokkaHtml by tasks.getting(DokkaTask::class)
102+
87103
val javadocJar by tasks.registering(Jar::class) {
88104
dependsOn(dokkaHtml)
89105
archiveClassifier.set("javadoc")

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ CONTRIBUTOR_TIMEZONE=China/Beijing
5353
CI_SYSTEM=GitHub
5454
CI_URL=https://github.com/bytebeats/compose-charts/actions/
5555
# Library related configuration
56-
COMPOSE_CHARTS_NAME=Compose Charts
56+
COMPOSE_CHARTS_NAME=Compose-Charts
5757
COMPOSE_CHARTS_ARTIFACT_ID=compose-charts
5858
COMPOSE_CHARTS_VERSION=0.1.2
5959
COMPOSE_CHARTS_PACKAGING=aar

0 commit comments

Comments
 (0)