DEV Community

Mayank
Mayank

Posted on

Answer: How do you publish KDoc for a Kotlin library using maven on Jitpack?

You need to use Dokka for auto documenting Kotlin project. You can find a brief explanation of Dokka on this article and also read the documentation if required.

Using the Gradle plugin

The preferred way is to use plugins block.

build.gradle.kts
plugins {
    id("org.jetbrains.dokka") version "1.4.32" }

repositories {
    mavenCentral()

Top comments (0)