-
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
Nested multimodule tasks are broken in Gradle 8 #2954
Comments
Related to
I've re-written the Dokka Gradle Plugin to be more compatible with the Gradle API if you'd like to try it: https://github.com/adamko-dev/dokkatoo The plan is to merge this plugin upstream, eventually #2839 |
Is there any workaround available beside using dokkatoo? |
@hfhbd you might try this workaround. Have you read this related issue and thread? |
Yes, but I don't use native targets, only multiple nested JVM modules and I just switched to dokkatoo. |
Nesting 'testing' inside 'zipline' and 'tests' inside 'zipline-kotlin-plugin' make it difficult to use the binary-compatibility-validator and dokka plugins. The binary-compatibility-validator plugin applies itself to nested modules. We don't want this. The dokka plugin crashes on multi-module builds. Kotlin/dokka#2954
Nesting 'testing' inside 'zipline' and 'tests' inside 'zipline-kotlin-plugin' make it difficult to use the binary-compatibility-validator and dokka plugins. The binary-compatibility-validator plugin applies itself to nested modules. We don't want this. The dokka plugin crashes on multi-module builds. Kotlin/dokka#2954
* Flatten Gradle modules Nesting 'testing' inside 'zipline' and 'tests' inside 'zipline-kotlin-plugin' make it difficult to use the binary-compatibility-validator and dokka plugins. The binary-compatibility-validator plugin applies itself to nested modules. We don't want this. The dokka plugin crashes on multi-module builds. Kotlin/dokka#2954 * Fixup paths in IoTestingCommon
After migrating to Gradle 8.1.1 and Dokka 1.8.20, without using any of the mentioned workarounds, I do not have this problem anymore. |
Nevermind, it seems to depend on the project. I have another project using Gradle 8.1.1 and Dokka 1.8.20, in which the workaround is still necessary. |
Seeing this in AWS SDK for Kotlin when trying to upgrade to Gradle 8.2.1 and Dokka 1.8.20. |
I have experienced the same issue when I call Dokka like Workaround Also, there is a possible workaround to disable other unnecessary |
* Remove outdated workaround for Kotlin/dokka#2954 * Update gradle.properties --------- Co-authored-by: hfhbd <[email protected]>
* Remove outdated workaround for Kotlin/dokka#2954 * Update gradle.properties --------- Co-authored-by: hfhbd <[email protected]>
Describe the bug
If you have a root gradle project that you run a multimodule dokka task on (e.g.
dokkaHtmlMultiModule
) which includes a gradle project that itself has a multimodule setup (i.e. also has adokkaHtmlMultiModule
task), the rootdokkaHtmlMultiModule
task will fail with an implicit dependency error.Note: this only happens on clean builds. If the task(s) are using a cached result of a successful run of the tasks, this error won't be thrown.
Expected behaviour
It should build normally.
To Reproduce
Installation
The text was updated successfully, but these errors were encountered: