If you need examples of my Gradle files or any oth...
# dokka
m
If you need examples of my Gradle files or any other details, please ask, I'm not sure what exactly you would want and I don't want to start spamming the channel with unnecessary clutter.
k
Sure, could you please tell me which Gradle and Dokka versions are you using?
m
Ah, that would help! Gradle version 6.5, Android Gradle plugin version 4.1.1 and Dokka version 1.4.20
k
Thanks ☺️ Just to make sure, all other tasks (like
dokkaHtml
and
dokkaGfm
) are available, right?
I’m asking because the
dokkaMultimodule
tasks will only be added in a parent project when there are subprojects present, and I’m trying to see if they are recognized correctly
m
Yes, I have them set up and all are producing documentation
k
Hm, that’s kind of strange then. Could you please share you project or at least some minimal example?
m
I don't have access rights to the repository to share it, but will see if I can recreate the project in a simpler form to share, certainly.
I assume, if the task did exist, it would appear below the main overarching gradle task.
Screenshot 2021-01-19 at 10.22.32.png
This is my gradle tab task list.
k
Thanks ☺️ Yes, it should certainly appear there
m
the app and 4 modules all also show the documentation group in their specific task lists.
@Kamil Doległo - this is a very cut down version of my library...
Also, thanks for taking the time to look at this.
k
Sure thing
Oh, I see. So the problem is that your modules are at the same level and you apply dokka to them separately (as I mentioned before: https://kotlinlang.slack.com/archives/C0F4UNJET/p1611051128012900?thread_ts=1611050620.011900&cid=C0F4UNJET). So now the easiest fix would be to add and apply dokka in the top-level buildfile (DokkaTest/build.gradle). The second way would be to create a multimodule task manually in some subproject and add all those other dokka tasks to it manually
m
Ah, OK, so it is a setup issue on my part, I assumed it would be - are there instructions on adding Dokka to the top level build file?
k
it should work out of the box though
Just add it to the
plugins
block, remove the explicit versions from the subprojects (Gradle will complain if you don’t do that, I believe), and it should be good to go
m
Right! With a little jiggery-pokery, and a lot of assistance from this github project......
I have managed to get it working perfectly.
Thanks for all your help @Kamil Doległo - you are a genius 😄
(Repo has been updated for reference)
k
Glad to hear that it worked! Thanks for the update ☺️