Downgrade dokka
The latest version does not support multi-platform projects.
This commit is contained in:
parent
89c1b8a6fb
commit
e56e6f6b33
@ -45,13 +45,17 @@ subprojects {
|
|||||||
plugins.withType<KotlinMultiplatformPluginWrapper> {
|
plugins.withType<KotlinMultiplatformPluginWrapper> {
|
||||||
apply(plugin = "org.jetbrains.dokka")
|
apply(plugin = "org.jetbrains.dokka")
|
||||||
|
|
||||||
val dokkaJavadoc by tasks.existing(DokkaTask::class)
|
val dokka by tasks.existing(DokkaTask::class) {
|
||||||
|
outputFormat = "javadoc"
|
||||||
|
outputDirectory = "$buildDir/docs/javadoc"
|
||||||
|
}
|
||||||
|
|
||||||
val javadocJar by tasks.registering(Jar::class) {
|
val javadocJar by tasks.registering(Jar::class) {
|
||||||
group = LifecycleBasePlugin.BUILD_GROUP
|
group = LifecycleBasePlugin.BUILD_GROUP
|
||||||
description = "Assembles a jar archive containing the Javadoc API documentation."
|
description = "Assembles a jar archive containing the Javadoc API documentation."
|
||||||
archiveClassifier.set("javadoc")
|
archiveClassifier.set("javadoc")
|
||||||
from(dokkaJavadoc)
|
dependsOn(dokka)
|
||||||
|
from(dokka.get().outputDirectory)
|
||||||
}
|
}
|
||||||
|
|
||||||
configure<KotlinMultiplatformExtension> {
|
configure<KotlinMultiplatformExtension> {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
object Versions {
|
object Versions {
|
||||||
const val dokka = "1.4.20"
|
const val dokka = "0.10.1"
|
||||||
const val kotlin = "1.4.21-2"
|
const val kotlin = "1.4.21-2"
|
||||||
const val kotlinBenchmark = "0.2.0-dev-20"
|
const val kotlinBenchmark = "0.2.0-dev-20"
|
||||||
const val kotlinCoroutines = "1.4.2"
|
const val kotlinCoroutines = "1.4.2"
|
||||||
|
Loading…
Reference in New Issue
Block a user