Yannick Pulver
02/03/2025, 7:43 PMdokkaGenerate
I’m currently receiving this error using Kotlin 2.1.0, Serialization 1.8.0, Dokka 2.0.0.
Execution failed for task ':shared:dokkaGeneratePublicationHtml'.
> Could not initialize class kotlinx.serialization.json.JsonLiteralSerializer
Exception java.lang.NoClassDefFoundError: kotlin/uuid/Uuid [in thread "Execution worker Thread 3"]
We’re using Kotlin Uuid in some parameters. Do you happen to have met this issue before?vignesh
02/06/2025, 6:15 AMUtkarsh Tiwari
02/07/2025, 12:49 AMBenjamun Sautner
02/07/2025, 7:28 PMdokkaGfm
task disappeared - I know it's in alpha, was it removed in v2? The docs suggest it's only in v2Piotr Krzemiński
02/12/2025, 10:02 AMAdrian Landborn
02/17/2025, 2:50 PMDokkaMultiModuleTask
. The reason being that we do release once per month (sometimes even more frequent) and the folders are piling up and and it takes longer and longer time to recompile/generate HTML for all old version. Maybe we are doing some things wrong? 🤔Abhimanyu
03/04/2025, 2:55 AM2.0.0
, but I see the following message.
Is there anyway to show the message only for projects using the old version instead?Utkarsh Tiwari
03/06/2025, 4:28 PMsolonovamax
03/06/2025, 10:45 PMLee Griffiths
03/18/2025, 4:08 PMpackage-info.java
you find a lot of links to dead pages/anchors at http://kotlinlang.org/docs/reference/kotlin-doc.html#module-and-package-documentation but I'm not sure if that's the same contents as the above, or not.peterthee
04/01/2025, 11:49 AMtask generateTestDocs(type: DokkaTask) {
dokkaSourceSets {
...
}
}
task generateAppDocs(type: DokkaTask) {
dokkaSourceSets {
...
}
}
Now in Dokka 2, whenever I register a DokkaTask like so I get an exception:
tasks.register<DokkaTask>("generateTestDocs") {
outputDirectory.set(layout.buildDirectory.dir("testDocs"))
...
}
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':generateTestDocs'.
> java.lang.ClassNotFoundException: org.jetbrains.dokka.DokkaBootstrapImpl
I have read through the migration guide, but couldnt really determine whether that should still be an option. Generating a single output file does work, but we are required by process to have them independently. Could you give me any suggestion howto generate independent reports for different source sets within one project?Adrian Landborn
04/09/2025, 9:17 AMWaldemar Kornewald
04/14/2025, 7:35 AMCLOVIS
04/21/2025, 1:06 PMRok Oblak
04/25/2025, 7:22 PMCLOVIS
05/03/2025, 5:39 PMorg.jetbrains.dokka.gradle.formats.DokkaHtmlPlugin
, there is a check but no configuration at all. The Javadoc plugin doesn't aggregate modules, and the other formats haven't been migrated to the Gradle plugin?kevin.cianfarini
05/05/2025, 6:03 PM[versions]
cardiologist = "0.3.1"
[libraries]
cardiologist = { module = "io.github.kevincianfarini.cardiologist:cardiologist", version.ref = "cardiologist" }
I want to parameterize the version number 0.3.1
so that I can inject it from my gradle.properties
file. Is that possible?Tomas Kormanak
05/13/2025, 11:30 AM* What went wrong:
Execution failed for task ':app:dokkaGeneratePublicationHtml'.
> A failure occurred while executing org.jetbrains.dokka.gradle.workers.DokkaGeneratorWorker
> 'void com.fasterxml.jackson.databind.type.TypeFactory.<init>(com.fasterxml.jackson.databind.util.LRUMap)'
I tried this workaround to force dokka to use older Jackson, but it seems it does not work.
https://github.com/Kotlin/dokka/issues/3472#issuecomment-2244628081
Any idea how to solve it?Junbin Park
05/16/2025, 3:57 AMdokka(projects.x.y.z)
is not loaded along with it.Sebastien Leclerc Lavallee
05/20/2025, 10:20 PMbuild.gradle.kts
:
subprojects {
apply("com.dokka...")
afterEvaluate {
dokka {
dokkaPublications.html {
moduleName.set("SOME - " + project.name)
includes.from(project.layout.projectDirectory.file("CHANGELOG.md"))
}
}
}
}
The file is at the correct location for each subproject, but I don't see my changelog file when I execute
./gradlew dokkaGenerate
Is there anything missing ?
Is that something that's possible?
Thanks! 🙂Sebastien Leclerc Lavallee
05/20/2025, 10:40 PMinternal
in each of my modules since it's not visible for anyone using the library?
Thanks again!Steven Zeck
05/28/2025, 3:45 AMplugins {
id("org.jetbrains.dokka")
}
dokka {
dokkaSourceSets.configureEach {
reportUndocumented = false
skipEmptyPackages = false
skipDeprecated = true
}
dokkaPublications.html {
outputDirectory.set(layout.buildDirectory.dir("docs"))
}
}
dependencies {
dokka(project(":project1"))
dokka(project(":project2"))
}
And in each modules build.gradle.kts
plugins {
id("dokka-convention")
}
Steven Zeck
05/31/2025, 2:23 AM# Package
or # Module
?Edoardo Luppi
06/05/2025, 4:28 PMdokkaHtmlPartial {
dependsOn(generateKotlinGrammarSource) // ANTLR task
}
in my sub-module build script.
What's the correct task to use in place of dokkaHtmlPartial
for this specific case?Edoardo Luppi
06/05/2025, 5:16 PM> Task :module-name:logLinkDokkaGeneratePublicationHtml
Generated Dokka HTML publication: localhost URL
for every sub-module, even when I'm running dokkaGenerate
at the top level with aggregation?Edoardo Luppi
06/05/2025, 5:29 PM.library-name--link::before {
background-size: var(--dokka-logo-height) var(--dokka-logo-width);
max-height: unset;
max-width: unset;
}
2. The sidebar paddings are bit too much imo.
3. The hover highlight appears only on the package name or the toggle arrow, but not on both at the same time (is it intended?)Nathan Fallet
06/07/2025, 1:28 PMSkolson5903
06/14/2025, 1:46 AMdokkaPublications.html {
outputDirectory.set(rootDir.resolve("docs/api/0.x"))
includes.from(project.layout.projectDirectory.file("README.md"))
}
but when I try this the html clause is an unresolved reference (using Idea 2025.2 EAP). And using the snippet below the builds/dokka folder has only an empty javadoc subfolder, so nothing is being generated. Since this is KMP I know V 2.0.0 doesn't support the javadoc option. What do I need to add to get the HTML to generate? Here's my beginning dokka snippet:
dokka {
moduleName.set("Kotlin Multiplatform Common IO Library")
dokkaSourceSets.commonMain {
includes.from("$appleFrameworkName.md")
}
}
Also, as a followup, I've struggled to find an example of how to tell maven publish to publish the HTML once generated. I'd also appreciate any info on that.
Thanks in advance for any help...Nathan Fallet
06/15/2025, 11:47 AMSkolson5903
06/23/2025, 9:59 PMapplyDefaultHierarchyTemplate()
so all the sourceSet names fit that template. Dokka produced a number of messages that surprised me, as if it doesn't understand the default hierarchy template. I posted the messages as a reply in this thread. Basically all the source sets that aren't leaf nodes in the default template are getting labeled as common. That seems to lead to it generating doc from appleMain into all the platforms, not just the Apple ones, etc. Is this expected behavior?