Publish javadoc

This commit is contained in:
Michael Bull 2017-10-21 22:10:13 +01:00
parent d1b9c7d2ef
commit e5ee148ec8

View File

@ -37,14 +37,14 @@ compileTestKotlin {
}
dokka {
outputFormat = 'html'
outputFormat = 'javadoc'
outputDirectory = "$buildDir/docs"
}
task kdocJar(type: Jar, dependsOn: dokka) {
task javadocJar(type: Jar, dependsOn: dokka) {
group = LifecycleBasePlugin.BUILD_GROUP
description = 'Assembles a jar archive containing the KDoc API documentation.'
classifier = 'kdoc'
description = 'Assembles a jar archive containing the Javadoc API documentation.'
classifier = 'javadoc'
from dokka.outputDirectory
}
@ -59,7 +59,7 @@ publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact kdocJar
artifact javadocJar
artifact sourcesJar
}
}