Sorin
11/24/2020, 3:12 PMtasks.dokkaHtmlMultiModule.configure {
outputDirectory.set(buildDir.resolve("dokkaCustomMultiModuleOutput"))
documentationFileName.set("README.md")
}
Marcin Aman
11/24/2020, 3:20 PMdocumentationFileName
was removed.
This property was removed after the gradle plugin rewrite with an intent to make it sourceSet dependent but we didn't have a chance to do it yet
Sorry for the confusion 😿
As for the reason why it doesn't find the task: do you apply it in a 'main' gradle file? Or in submodules? dokkaHtmlMultimodule
runs dokkaHtml
tasks on submodules and then copies the results to main docsSorin
11/24/2020, 3:25 PMMarcin Aman
11/24/2020, 3:33 PMSorin
11/24/2020, 3:34 PMbuildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath(kotlin("gradle-plugin", Version.kotlinVersion))
classpath("com.android.tools.build:gradle:4.0.2")
classpath("org.jetbrains.dokka:dokka-gradle-plugin:${Version.dokka}")
}
}
allprojects {
repositories {
google()
jcenter()
}
}
tasks.register("clean").configure {
delete("build")
}
tasks.dokkaHtmlMultiModule.configure {
outputDirectory.set(buildDir.resolve("dokkaCustomMultiModuleOutput"))
}
plugins {
id("com.android.library")
id("github-publish")
kotlin("android")
id("org.jetbrains.dokka")
}
....
dependencies {
implementation(kotlin("stdlib", Version.kotlinVersion))
api(Lib.KotlinX.coroutinesCore)
api(Lib.KotlinX.coroutinesAndroid)
api(Lib.mqtt)
testImplementation(Lib.Test.junit4)
testImplementation(Lib.Test.junit5Api)
}
tasks.dokkaHtml.configure {
outputDirectory.set(buildDir.resolve("dokka"))
}