Skip to content

Commit 96cab0d

Browse files
author
Nikolay Kochetkov
committed
Publication fix
1 parent be9b570 commit 96cab0d

3 files changed

Lines changed: 22 additions & 0 deletions

File tree

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

commonstatemachine/build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,13 @@ android {
144144
}
145145
val dokkaHtml by tasks.getting(DokkaTask::class)
146146

147+
val javadocJar by tasks.creating(Jar::class) {
148+
dependsOn(dokkaHtml)
149+
group = "documentation"
150+
archiveClassifier.set("javadoc")
151+
from(tasks.dokkaHtml)
152+
}
153+
147154
val libId = "commonstatemachine"
148155
val libName = "commonstatemachine"
149156
val libDesc = "Multiplatform state machine for mobile applications"
@@ -169,6 +176,7 @@ publishing {
169176
}
170177
}
171178
publications.withType<MavenPublication> {
179+
artifact(javadocJar)
172180
pom {
173181
name.set(libName)
174182
description.set(libDesc)

coroutines/build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,13 @@ android {
150150
}
151151
val dokkaHtml by tasks.getting(DokkaTask::class)
152152

153+
val javadocJar by tasks.creating(Jar::class) {
154+
dependsOn(dokkaHtml)
155+
group = "documentation"
156+
archiveClassifier.set("javadoc")
157+
from(tasks.dokkaHtml)
158+
}
159+
153160
val libId = "coroutines"
154161
val libName = "coroutines"
155162
val libDesc = "Coroutines extension for CommonStateMachine"
@@ -175,6 +182,7 @@ publishing {
175182
}
176183
}
177184
publications.withType<MavenPublication> {
185+
artifact(javadocJar)
178186
pom {
179187
name.set(libName)
180188
description.set(libDesc)

0 commit comments

Comments
 (0)