How to add Dokka documentation engine support to Android project without adding to dependencies section additional classpath. I have compatibility issues...
Dokka documentation suggests following, but it's classpath breaks my build..
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:0.9.17"
}
}
apply plugin: 'org.jetbrains.dokka-android'
Only solution I could found:
Gradle script plugin to generate documentation by Dokka documentation engine in Javadoc format for Java, Kotlin, Android and non-Android projects. It's very easy, you don't need to add to dependencies
section additional classpath
or think about compatibility issues, you don't need additional repositories also.
It is up to you.
Add the following at the end of build.gradle
of each sub-module that you wish to generate documentation:
apply from: 'https://raw.github.com/Vorlonsoft/EasyDokkaPlugin/master/dokka.gradle'
You can now generate documentation by Dokka documentation engine in Javadoc format:
$ gradle dokkaJavadocsJar
Get generated documentation from ${buildDir}
directory.