https://kotlinlang.org logo
#dokka
Title
a

Amol

11/19/2021, 3:20 PM
Hi I am trying to generate docs using Dokka in my kotlin project. The gradle files are defined in groovy format Gradle version: 5.6.4 Dokka version: 1.5.0 I simply added the plugin to my root build.gradle file
Copy code
plugins {
    id 'org.jetbrains.dokka' version '1.5.0'
}
This gradle synced successfully. When I now try to run
./gradlew dokkaJavadoc
or
./gradlew dokkaHtml
I get this error:
Copy code
$ ./gradlew dokkaHtml

FAILURE: Build failed with an exception.

* What went wrong:
org/jetbrains/kotlin/gradle/dsl/KotlinSingleTargetExtension
> org.jetbrains.kotlin.gradle.dsl.KotlinSingleTargetExtension
v

Vadim Mishenev

11/21/2021, 10:35 PM
What version of Kotlin plugin do you use? Please turn on a debug mode ``./gradlew dokkaHtml -d`` Or it will be useful if you share the project configuration.
a

Amol

11/29/2021, 6:19 AM
Thanks @Vadim Mishenev - I think it was probably the fact that I was using an old Kotlin version (
1.2.71
) I switched to Dokka 0.9.x and it worked - Is there a page where I can see Dokka - Kotlin compatibilty?
2 Views