Publish javadoc
This commit is contained in:
parent
d1b9c7d2ef
commit
e5ee148ec8
10
build.gradle
10
build.gradle
@ -37,14 +37,14 @@ compileTestKotlin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dokka {
|
dokka {
|
||||||
outputFormat = 'html'
|
outputFormat = 'javadoc'
|
||||||
outputDirectory = "$buildDir/docs"
|
outputDirectory = "$buildDir/docs"
|
||||||
}
|
}
|
||||||
|
|
||||||
task kdocJar(type: Jar, dependsOn: dokka) {
|
task javadocJar(type: Jar, dependsOn: dokka) {
|
||||||
group = LifecycleBasePlugin.BUILD_GROUP
|
group = LifecycleBasePlugin.BUILD_GROUP
|
||||||
description = 'Assembles a jar archive containing the KDoc API documentation.'
|
description = 'Assembles a jar archive containing the Javadoc API documentation.'
|
||||||
classifier = 'kdoc'
|
classifier = 'javadoc'
|
||||||
from dokka.outputDirectory
|
from dokka.outputDirectory
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ publishing {
|
|||||||
publications {
|
publications {
|
||||||
mavenJava(MavenPublication) {
|
mavenJava(MavenPublication) {
|
||||||
from components.java
|
from components.java
|
||||||
artifact kdocJar
|
artifact javadocJar
|
||||||
artifact sourcesJar
|
artifact sourcesJar
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user