aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt12
1 files changed, 7 insertions, 5 deletions
diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt
index f6055a8a..f5b66cdb 100644
--- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt
+++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt
@@ -173,11 +173,13 @@ open class DokkaTask : AbstractDokkaTask() {
No source sets to document found.
Make source to configure at least one source set e.g.
- dokka {
- dokkaSourceSets {
- create("commonMain") {
- displayName = "common"
- platform = "common"
+ tasks {
+ dokkaHtml {
+ dokkaSourceSets {
+ register("commonMain") {
+ displayName = "common"
+ platform = "common"
+ }
}
}
}