Dokka: generate Android kotlin library aar

Created on 6 Mar 2019  路  2Comments  路  Source: Kotlin/dokka

i hava a kotlin module library , i want generate aar file, how to use dokka to generate kotlin aar file?

awaiting response question

Most helpful comment

It's not clear what the point of generating aar file with documentation
Basically, you should make it like creating documentation jar

Ex:

task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
    outputFormat = 'javadoc'
    outputDirectory = "$buildDir/javadoc"
}

task javadocJar(type: Jar, dependsOn: dokkaJavadoc) {
    classifier = 'javadoc'
    from "$buildDir/javadoc"
}

All 2 comments

It's not clear what the point of generating aar file with documentation
Basically, you should make it like creating documentation jar

Ex:

task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
    outputFormat = 'javadoc'
    outputDirectory = "$buildDir/javadoc"
}

task javadocJar(type: Jar, dependsOn: dokkaJavadoc) {
    classifier = 'javadoc'
    from "$buildDir/javadoc"
}

Hi @yan612468, is this still relevant?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hamza1311 picture hamza1311  路  5Comments

mikeholler picture mikeholler  路  3Comments

xit0c picture xit0c  路  4Comments

fschoellhammer picture fschoellhammer  路  6Comments

juergenzimmermann picture juergenzimmermann  路  3Comments