-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dokka should provide gradle-idiomatic way to aggregate documentation #1752
Comments
@triplem can you point me to the specific part of the documentation and/or the example you linked that explains this "idiomatic way"? I can't find any example of report-aggregation there |
I wonder if this issue has been resolved with Dokka 1.4+, see #157 (comment) |
It turns out that Dokka uses is dokka/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/AbstractDokkaParentTask.kt Lines 15 to 17 in f2adc0a
The suggested approach is as follows:
That avoids cross-project access, and it abstracts the dependencies. The sample project should have something like "coverage aggregation". I used the same pattern in https://github.com/allure-framework/allure-gradle#aggregating-results-from-multiple-projects, and I think it is nice. As a side-note, I split |
There's some aggregation stuff that looks like it's targeted for 7.4 as an incubator, see this sample and this one from the nightly docs. |
I second this feature request. This would make it possible to use dokka in existing projects. Without it dokka forces users to restructure their build. For some projects this is a no-go. |
Hi all 👋 I've been working on Dokkatoo, which is a completely new Gradle Plugin for running Dokka, and it's compatible with the Gradle API and correctly supports aggregation across subprojects. I'm working with the Dokka team, and we plan to merge Dokkatoo into the Dokka core project eventually. Until then, Dokkatoo is available now on the Gradle Plugin Portal. There are still some TODOs and rough edges, so I'd appreciate feedback and help! |
In gradle 6.8.x (and most probably before this already) gradle provides an "idiomatic" way to define aggregrations of reports without task-dependencies. This is mainly done using configurations, for an example see https://docs.gradle.org/release-nightly/samples/sample_structuring_software_projects.html.
Expected Behavior
The dokka Task should support this idiomatic way and should (best case) provide some detailed documentation on how to apply this pattern to an existing project.
Current Behavior
The current plugin implementation does not provide a nice and simple way to implement a report-aggregation, without any task-dependencies without a rootProject-build. The plugin does apply this already, but only to the root-project, so there is no real way to construct a project using the idiomatic structure.
The text was updated successfully, but these errors were encountered: