Oleg Yukhnevich
12/16/2024, 4:52 PMSebastian Schuberth
12/16/2024, 5:56 PMOleg Yukhnevich
12/16/2024, 7:16 PMSebastian Schuberth
12/16/2024, 7:25 PMSebastian Schuberth
12/16/2024, 7:30 PMJavier
12/16/2024, 7:37 PMorg.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
?
I have a lot of projects and having to add that property to all of them will be really annoying. As V2 is the default state for the new version, I think keeping that property to have the setup working is not nice, maybe
org.jetbrains.dokka.experimental.gradle.pluginMode=V1Enabled //V2Enabled is the default
Adam Semenenko
12/17/2024, 9:32 AMOn a related note, is there an official statement about the future of https://github.com/adamko-dev/dokkatoo? Will adamko-dev contribute to Dokka 2.0 instead going forward?Hi, yes, now I'm working at JetBrains I'll be working on the official Dokka Gradle Plugin. My plan for Dokkatoo is to transition it to a repo for community-supported Dokka formats, add-ons, extras, etc. For example, DGPv2 dropped support for Markdown and Jekyll, so I might transfer those to Dokkatoo. But there's no solid plans yet. I'm just waiting on time/energy/motivation.
Oleg Yukhnevich
12/17/2024, 9:37 AMIs it impossible to avoid having the propertyit's possible to apply DGP via class name, e.g.?org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
plugins.apply(DokkaHtmlPlugin::class)
Yeah, it's probably not very nice, but may be it will be fine for you
having to add that property to all of them will be really annoyingYeah, I understand the frustration, but still, we need to have a graceful migration for a lot of Dokka users In future versions we will flip the default to v2 and emit a warning about unnecessary property, so you will be able to drop it. Even while DGPv2 is very cool and supports all new features, it's a big shift comparing to DGPv1, so we don't want to just break build scripts for all users It's not the first time we hear this concern and I've written a bit more under the 2.0.0-Beta post
Adam Semenenko
12/17/2024, 10:06 AMIs it impossible to avoid having the property org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled?To add to Oleg's answer, the main thing we were concerned with is making it less confusing in the future when DGPv2 is the default. We wanted the opt-in flag to be as ephemeral as possible. If we did something more permanent, like publishing a Gradle plugin ID for DGPv2, it would always be published forever, and would definitely confuse people in the future when DGPv1 is a distant memory!
Lukasz Kalnik
12/18/2024, 10:43 AMdokkaGenerateHtml
task. https://kotlinlang.org/docs/dokka-migration.html#select-documentation-output-format
But I see only dokkaGenerateModuleHtml
and dokkanGeneratePublicationHtml
in my project (one-module).Lukasz Kalnik
12/18/2024, 10:45 AMtasks.register<Jar>("dokkaHtmlJar") {
dependsOn(tasks.dokkaHtml)
from(tasks.dokkaHtml.flatMap { it.outputDirectory })
archiveClassifier.set("html-docs")
}
Lukasz Kalnik
12/18/2024, 10:45 AMdokkaHtml
task is still available in DGPv2Adam Semenenko
12/18/2024, 11:04 AMfrom(tasks.dokkaHtml.flatMap { it.outputDirectory })
with
from(tasks.dokkaGeneratePublicationHtml.flatMap { it.outputDirectory })
There's a complete example in the repo here: https://github.com/Kotlin/dokka/blob/v2.0.0/examples/gradle-v2/library-publishing-example/build.gradle.kts#L18-L22Lukasz Kalnik
12/18/2024, 11:05 AMAdam Semenenko
12/18/2024, 11:16 AM