I am a dokka newbie ... struggling to get dokka 2....
# dokka
m
I am a dokka newbie ... struggling to get dokka 2.0.0 configured in IntelliJ 2024.3.6 on macOS Setting up from scratch ... not a migration. I am following documentation at https://kotlinlang.org/docs/dokka-get-started.html https://kotlinlang.org/docs/dokka-gradle.html#single-project-configuration ... but failing ... tasks are undefined If I try the other single-project configuration then the imports are undefined. I am able and willing to help improve for other newbies coming up.
s
Hey! I was struggling too with setup and mostly multi module. Now I did follow the setup in that repo and I got it working https://github.com/hfhbd/kotlinx-uuid
m
looking ...
build.gradle.kts at this location has dokka tag at the top level. dokka { dokkaPublications.configureEach { includes.from("README.md") } <snip> } for me that shows as undefined 😞
s
You can check in
settings.gradle.kts
and the
MySettings.settings.gradle.kts
. You need to import the dokka plugin in the root gradle. But for it to resolve, you need to have that change
m
I got dokka 2.0.0 working from the command line ./gradlew dokkaHtml Part of my confusion was/is that the tags still show red in IntelliJ and complaining about unresolved references
s
Just a FYI, I'm using
dokkaGenerate
task And sometime it happens that intelliJ doesn't resolve dependency when gradle does 🤷🏻
m
I was able to get IntelliJ to stop complaining by opening the gradle window and Sync All Gradle Projects
s
Great! 👍🏻