robfletcher
05/16/2018, 6:27 PMdanny
05/16/2018, 6:33 PMclean build final
is probably all you need, I think the readme on Spring release is wrongrobfletcher
05/16/2018, 6:48 PMclean build final
is all I’m doingclean
danny
05/16/2018, 8:23 PMrobfletcher
05/16/2018, 8:24 PMdanny
05/16/2018, 8:25 PMmustRunAfter
also doesn’t cause tasks to run incidentallydependsOn
is forrobfletcher
05/16/2018, 8:25 PMdanny
05/16/2018, 8:26 PMenabled = false
on the original taskrobfletcher
05/16/2018, 8:27 PMdanny
05/16/2018, 8:27 PMjavadoc.dependsOn dokka; javadoc.enabled = false
dokkaJar.dependsOn dokka
dokkaJar
is called for the publication, everything should happen implicitlyrobfletcher
05/16/2018, 8:28 PMfrom(dokka)
?danny
05/16/2018, 8:28 PMrobfletcher
05/16/2018, 8:29 PMjavadoc.dependsOn dokka
javadoc.enabled = false
javadocJar.dependsOn dokkaJar
javadocJar.enabled = false
Invalid publication 'nebula': multiple artifacts with the identical extension and classifier ('jar', 'javadoc').
javadoc.enabled = false
task(javadocJar, type: Jar, overwrite: true) {
group = "documentation"
description = "Assembles Kotlin docs with Dokka"
classifier = "javadoc"
from(dokka)
}
Then I can remove the publication stuff and Nebula just does it for me because I hijacked the regular javadocJar task