-
Notifications
You must be signed in to change notification settings - Fork 411
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
Modules with kapt plugin fails with implicit dependency error #3117
Comments
Same errors on me, using Gradle 8.3, Kotlin 1.9.10, Dokka 1.9.0
It is same, whether belows added or not.
|
@fobidlim thanks for trying it out! Is the project where it is happening open source by any chance? Having a reproducer would simplify debugging by a lot |
@IgnatBeresnev The project is not open source. |
@IgnatBeresnev Our project is also not open-source. I solved the issue by adding the explicit dependency in all afterEvaluate {
tasks["dokkaHtml"].dependsOn(tasks.getByName("kaptReleaseKotlin"), tasks.getByName("kaptDebugKotlin"))
} |
@adjorno much appreciated! I had to slightly adopt it for my case but it got rid of the message!
|
We have the same issue with using dokka + kapt in our project, will it be fixed in future dokka release? |
I use the same, but have the error: cannot find task kaptKotlin/kaptReleaseKotlin, can anyone help me? |
This seems to be related to when a build is running multiple modules in parallel. If you run the dokka tasks individually in each module they will work fine. However as soon as you try to run multiple it starts to fail as if some singleton instance is being set that then affects everything else. Can't provide a sample code as it is happening on work builds. In some cases doing the depends on works but in a large mulitmodule build it just shifts the issue to another module that was working before. |
Should not be an issue in Dokka 2.0.0 in Dokka Gradle plugin v2 |
Describe the bug
After ugrading Gradle to 8.2.1, Kotlin to 1.9.0 and Dokka to 1.8.20 the modules using kapt plugins started failing on
:dokkaHtml
gradle task execution with implicit dependency error.Expected behaviour
Dokka successfully finishes.
Screenshots
To Reproduce
run
:dokkaHtml
2 times. It will fail on the 2nd run, probably something related to Gradle caching.Dokka configuration
Configuration of dokka used to reproduce the bug
Installation
The text was updated successfully, but these errors were encountered: