``` id("org.jetbrains.dokka").version("0.9.18"...
# dokka
x
Copy code
id("org.jetbrains.dokka").version("0.9.18")
Copy code
xecution failed for task ':dokka'.
> Could not resolve all files for configuration ':dokkaRuntime'.
   > Could not find org.jetbrains.dokka:dokka-fatjar:0.9.18.
     Searched in the following locations:
       - <https://repo.maven.apache.org/maven2/org/jetbrains/dokka/dokka-fatjar/0.9.18/dokka-fatjar-0.9.18.module>
       - <https://repo.maven.apache.org/maven2/org/jetbrains/dokka/dokka-fatjar/0.9.18/dokka-fatjar-0.9.18.pom>
     Required by:
         project :
Copy code
tasks.withType<DokkaTask>().forEach {
    it.outputFormat = "javadoc"
    it.outputDirectory = "$buildDir/javadoc"
    it.jdkVersion = 8
}

tasks {
    val sourcesJar by creating(Jar::class) {
        dependsOn(JavaPlugin.CLASSES_TASK_NAME)
        archiveClassifier.set("sources")
        from(sourceSets.main.get().allSource)
    }

    val javadocJar by creating(Jar::class) {
        archiveClassifier.set("javadoc")
        group = JavaBasePlugin.DOCUMENTATION_GROUP
        from(getByName( "dokka" ))
    }

    artifacts {
        archives(sourcesJar)
        archives(javadocJar)
        archives(jar)
    }
}
c
The Dokka jar is available on jCenter, not MavenCentral. From the README:
Copy code
repositories {
    jcenter() // or maven { url '<https://dl.bintray.com/kotlin/dokka>' }
}
­čĹŹ 1
k
Yup, that is true