dokka icon indicating copy to clipboard operation
dokka copied to clipboard

Example: Dokka + MPP + MavenPublish

Open chrisjenx opened this issue 5 years ago • 2 comments

Question

Thank you for adding MPP support. I was wondering if there is an example of how we can now make uploading documentation via the maven-publish plugin? (Or if it's possible to make it detect the maven-publish plugin to auto attach artifacts)

Installation

  • Operating system: macOS
  • Build tool: Gradle v6.1.1 / Kotlin 1.3.70-eap / MPP
  • Dokka version: 0.10.1

Additional context

Example for how to attach javadoc artifacts - or support adding them automatically when the maven-publish plugin is added.

chrisjenx avatar Feb 14 '20 21:02 chrisjenx

Seconded, it would be nice to have a docs on that 😄

utybo avatar Apr 21 '20 17:04 utybo

There is no example that I'm aware of, you have to attach the docs manually. We should create some docs for that

kamildoleglo avatar May 12 '20 23:05 kamildoleglo

An example project has been added: https://github.com/Kotlin/dokka/tree/master/examples/gradle/dokka-library-publishing-example

And some points are addressed in #2728 as well

IgnatBeresnev avatar Oct 26 '22 12:10 IgnatBeresnev