Sebastian Sellmair [JB]
07/13/2020, 1:37 PMgildor
07/13/2020, 1:51 PMZach Klippenstein (he/him) [MOD]
07/13/2020, 1:55 PMSebastian Sellmair [JB]
07/13/2020, 2:00 PMWhy default example shows how to do that for custom configuration?I do not 100% get that, since the only custom thing we do in this default examples is to create a sourceLink. MPP projects are not yet auto-configured by dokka
use case is publish kdoc and javadoc for maven cental)There is no more configuration necessary for html and javadoc formats. Applying the dokka plugin is will automatically create tasks like
:dokkaHtml
or dokkaJavadoc
👍
Would also be helpful to have a sample for generating a single site for a multi-module library project,Good idea! We should definitely show how multi-module projects can be configured.
Zach Klippenstein (he/him) [MOD]
07/13/2020, 2:10 PMexternalDocumentationLink
as well? Took me a bit of trial and error to get this working to link to official Android docs, for example.gildor
07/13/2020, 2:10 PMno more configuration necessaryBut you have to register task to maven-publish plugin, right?
Sebastian Sellmair [JB]
07/13/2020, 2:28 PMMaybe a sample of usingAgree! 👍as well?externalDocumentationLink
Took me a bit of trial and error to get this working to link to official Android docs, for example.Yes.. I am not quite happy with some parts of the configuration DSL. It is definitely planned to improve this after the milestone release. Sharing all your frustrations will help us!
But you have to register task to maven-publish plugin, right?Oh! Yes, you're right. I just focused on generating javadoc, but people want to push this as artifact. Maaaybe we should also ship some "dokkaJavadocJar" task out of the box? 🤔
Zach Klippenstein (he/him) [MOD]
07/13/2020, 2:29 PMSebastian Sellmair [JB]
07/13/2020, 2:35 PMZach Klippenstein (he/him) [MOD]
07/13/2020, 2:35 PMassemble
tasks for dokka to work (it would be even better if the plugin did this automatically, but I think there's already an issue for that).Zach Klippenstein (he/him) [MOD]
07/13/2020, 2:37 PMThis should not be the job of dokka, right?Maybe technically, but the fact that
javadoc
"just works" (at least I believe it does, in the sense that dependencies and assembly work out of the box for maven publishing) but dokka doesn't makes it seem like it's not supported as well.Sebastian Sellmair [JB]
07/13/2020, 3:09 PMZach Klippenstein (he/him) [MOD]
07/13/2020, 3:29 PMZach Klippenstein (he/him) [MOD]
07/13/2020, 3:31 PMZach Klippenstein (he/him) [MOD]
07/13/2020, 3:35 PMZach Klippenstein (he/him) [MOD]
07/13/2020, 3:44 PMIt should not be necessary to run assemble first in order to make dokka work?My bad, I just realized this is probably a jetifier bug, not a dokka one.
Joe
07/13/2020, 4:23 PMAfzal Najam
07/14/2020, 2:57 AM