Skip to content

How to add Dokka plugins #175

Closed Answered by aSemy
translatenix asked this question in Q&A
Feb 25, 2024 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Hi 👋, thanks for the questions!

How do I add Dokka plugins with Dokkatoo? Specifically I'd like to use the kotlin-as-java Dokka plugin.

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:

  1. apply the format specific Dokkatoo plugin (e.g. id("dev.adamko.dokkatoo-html")), or the 'all formats' plugin id("dev.adamko.dokkatoo"),
  2. then add the plugin to the format specific dependency containers, e.g. dokkatooPluginHtml("org.jetbrains.dokka:kotlin-as-java-plugin:1.9.10").

I…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@aSemy
Comment options

Answer selected by translatenix
@translatenix
Comment options

@aSemy
Comment options

@translatenix
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants