Oleg Yukhnevich
01/29/2024, 2:38 PMJavier
01/29/2024, 3:06 PMtoolNameTaskName
Some samples can be spotlessApply
or detektName
I would use dokka
as general task which runs everything and more granular tasks with dokkaSomeTask
Javier
01/29/2024, 3:08 PMgenerateDocumentation
can be a “lifecycle” task if the project does multiple things or have different kind of projects with different documentation pluginsSebastian Schuberth
01/29/2024, 4:15 PMdokkaBuild
as build
is a Gradle lifecycle task. So maybe just dokka
similar to detekt
?Javier
01/29/2024, 4:24 PMdokkaBuild
is a task which executes all necessary dokka tasks. So it would be a “dokka lifecycle” task. I have seen both, tool
and toolTask
.
Should be interesting Gradle would allow aliasesSebastian Schuberth
01/29/2024, 4:44 PMJavier
01/29/2024, 4:46 PMJavier
01/29/2024, 4:46 PMSebastian Schuberth
01/29/2024, 4:51 PMJavier
01/29/2024, 4:51 PMdokka {
html.set(true)
markdown.set(true)
javadoc.set(false)
}
That would register the dokkaHtml
and dokkaMarkdown
tasks that do the actual job. dokka
or dokkaBuild
do nothing, those tasks are executed if dokka
is executedJavier
01/29/2024, 4:52 PMJavier
01/29/2024, 4:55 PMGenerate
as it usually is to generate code (or anything) that is going to be assembled/built
and/or used in the assemble/build
tasks (or tasks attached to those tasks). The generated documentation is already "assembled/built".Javier
01/29/2024, 4:57 PMbuild
like mkdocs (both, the tool itself and the unofficial Gradle plugin) and Docusaurus. So it is more friendly to use build
over generate
rnett
01/29/2024, 8:40 PMI would not useWe do have muli-module to worry about, I'd suggestas it usually is to generate code (or anything) that is going to beGenerate
and/or used in theassembled/built
tasks (or tasks attached to those tasks). The generated documentation is already "assembled/built".assemble/build
dokkaGenerate
to generate this module's docs, and dokkaBuild
(or assemble) to include any multi-module docs, depending on how exactly that's going to lookJavier
01/29/2024, 8:42 PMdokkaBuild
only at the root project? That is not a good practiceJavier
01/29/2024, 8:43 PMrnett
01/29/2024, 8:46 PMgenerate
would generate just this module's docs, and the build
would include dependencies (like kover). But that's only really relevant if generate
can't just include dependencies by itselfandries.fc
01/30/2024, 7:36 AMRobert Jaros
01/30/2024, 10:41 AMgradle tasks
output.Javier
01/30/2024, 10:53 AMIgnat Beresnev
01/31/2024, 12:38 PMdokkaHtml
, dokkaPartial
, dokkaGfm
, dokkaJekyll
, dokkaJavadoc
.
• Separate tasks for multimodule projects, so dokkaHtmlMultiModule
, dokkaGfmMultiModule
and so on.
While most of you are Dokka and Gradle power users and don't have that problem, it really is confusing for beginners that might not even realize they have a multi-module project and not understand the difference between the formats 🙂
So ideally (if possible), we'd like to provide a single user-facing task that will just generate the documentation (HTML by default), both in single-project and in multi-project builds.Javier
01/31/2024, 1:06 PMdokka
instead of needing to run any more specific task.
Similar to running assemble
and not any compile task individually.CLOVIS
02/01/2024, 9:13 AMsolonovamax
02/13/2024, 4:37 PMbuild
, which has a task dep on dokka. or, I'll invoke it from my IDE, where I can look at the "documentation" category to find the task name