How to add Dokka plugins #175
-
How do I add Dokka plugins with Dokkatoo? Specifically I'd like to use the kotlin-as-java Dokka plugin. I'm confused as to why every example under dokkatoo/examples has both a dokka/ and a dokkatoo/ directory, and why the dokkatoo/ directory of the kotlin-as-java example is almost empty. I tried:
But Gradle says it cannot resolve |
Beta Was this translation helpful? Give feedback.
Answered by
aSemy
Feb 25, 2024
Replies: 1 comment 4 replies
-
Answering my own question: |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi 👋, thanks for the questions!
Yeah... it's not very clear. It's been a while since I looked at it, and I had to do some digging.
As you discovered, Dokka Plugins are only applicable to each publication formats. There's four built-in formats (HTML, GFM, Jekyll, Javadoc). So you'll have to do the following:
id("dev.adamko.dokkatoo-html")
), or the 'all formats' pluginid("dev.adamko.dokkatoo")
,dokkatooPluginHtml("org.jetbrains.dokka:kotlin-as-java-plugin:1.9.10")
.I…