ansman
12/26/2024, 7:20 PMRobert Jaros
12/28/2024, 3:38 PMV2EnabledWithHelpers
property, but what should I expect now? How these "helpers" work?Robert Jaros
12/28/2024, 6:13 PMdependencies {}
to aggregate documentation from the sub-projects but I also want to see the documentation for my root project. It doesn't seem to work by default. More in 🧵David Herman
01/02/2025, 11:11 PMkevin.cianfarini
01/05/2025, 12:04 AMCLOVIS
01/08/2025, 3:01 PMDokkaLocationProvider
implementation.
Currently, the documentation is generated using the human-readable module name:
dokkaContext.configuration.moduleName
which gives the output:
api/-my%20-example%20-module/package.name/Class.md
which isn't great for URLs.
Instead, I'd prefer to use the module's Gradle project name, to get something like:
api/my-example-module/package.name/Class.md
Is this possible? I don't see anything that looks like that in org.jetbrains.dokka.DokkaConfiguration
Jacob Wingate
01/09/2025, 1:22 PMdokkaHtml
is populating elements that lack KDoc annotations, including a "Package-level declarations" section. My understanding was that only KDoc-annotated code should be included by default, but this does not seem to be the case in my project.
I have attached an example showing the "Package-level declarations" being generated without corresponding KDoc annotations.
Below is my current build.gradle
configuration:
tasks.dokkaHtml {
dokkaSourceSets {
named("main") {
sourceRoots.from(file("src/main/kotlin"))
displayName.set("Main Documentation")
suppress.set(false)
reportUndocumented.set(false) // Exclude undocumented elements
}
named("test") {
sourceRoots.from(file("src/test/kotlin"))
displayName.set("Test Documentation")
suppress.set(false)
reportUndocumented.set(false)
}
}
}
Any help would be greatly appreciated!Roberto Leinardi
01/10/2025, 3:03 PMdokkaHtmlMultiModule {
outputDirectory.set(rootDir.resolve("docs/dokka"))
}
Everything worked seamlessly! 🚀
With version 2.x, it seems I now have to explicitly declare all the Dokka dependencies for the modules in the root `build.gradle.kts`:
dependencies {
dokka(project(":childProjectA"))
dokka(project(":childProjectB"))
}
This manual step is tricky for me since my project has both dynamic modules (loaded via a JSON config) and static modules. In version 1.x, I could rely on Gradle's build conventions for automation, but now I feel like I have two sources of truth:
1. The standard Gradle configuration for modules.
2. The new Dokka dependencies I need to define manually.
Is there an alternative approach for multimodule projects that would let me mark a project as a Dokka dependency directly in the module’s build.gradle.kts
? Something that works well with Gradle build conventions and can be automated?
Thanks in advance for your insights!Oleg Yukhnevich
01/20/2025, 1:52 PMgradle.properties
file:
org.jetbrains.dokka.experimental.tryK2=true
How to test that everything is fine?
1. just build documentation - should work in almost all cases 🙃
2. check several pages of generated API reference - there could be minor differences comparing to K1 analysis - still it would be nice to report them if they are not mentioned in known issues/inconsistencies or potential differences (mentioned in release notes)
It's also possible to compare generated HTML's side-by-side, but unfortunately there could be a lot of noise there 😞
Anyway, we would really appreciate your feedback! kodee loving
P.S. don't be afraid to ask any questions regarding K2 here in thread or in channel!Robert Jaros
01/22/2025, 10:47 AM[wasmJs]
and [js]
on functions and classes defined in both targets. Screenshot in thread.Robert Jaros
01/22/2025, 7:06 PMAdrian Landborn
01/24/2025, 10:14 AMDries Samyn
01/29/2025, 5:22 PMYannick 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?