-
Notifications
You must be signed in to change notification settings - Fork 7
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
Consider using different Gradle attributes for dokkatooHtmlPublicationPluginClasspathApiOnlyConsumable
#165
Comments
Thanks for the report! The configurations have different attributes so it's a mystery why Gradle is confusing them. I've tried various combinations of setting Possibly it's an issue with KSP, which doesn't seem to add any attributes to its Configurations. It looks like this is another bug/flaw/undocumented feature in Gradle so I've raised an issue gradle/gradle#28053. I'm not sure how best to workaround it. |
Smaller reproducer with included builds instead of KSP here: https://github.com/martinbonnin/reproducer-attributes tldr; not really sure what's happening down there but given all the existing ecosystem around this, I'd feel more comfortable if the dokkattoo artifacts were using a dedicated |
This issue seems relevant gradle/gradle#26463 |
#173 seems to have helped in some cases, but not all |
Right. It's working when everything is in the same build but failing to compile build scripts in composite builds. From that commit |
hey @martinbonnin, when you try K2 could you also try and remove the 'poison' workaround? I'm curious whether it would help. See #170 (comment) |
Not working for us sadly (
This somewhat fails when resolving included build. Note that this commit is using KGP RC2 but languageVersion 1.9 because we're stuck on other issues to enable languageVersion 2.0 (but I'd say the important thing is the KGP version here?) |
Thanks for trying! Did you also check with the latest Dokkatoo version? The commit you linked shows v2.2.0, but the latest is v2.3.1. This contains a fix relevant for composite builds - gradle/gradle#28695 |
Wooops, apologies I didn't realize there was an old branch named This is the good commit I tried yesterday. It still fails with |
After upgrating to
2.1.0
, we started having KSP errors because the KSP classpath would select thedokkatooHtmlPublicationPluginClasspathApiOnlyConsumable
variant of some projects instead of thejvmRuntimeElements
ones. They are indeed quite similar:vs
I was able to workaround by forcing "unselection" of the dokkatoo variant:
TBH I'm not 100% what the root cause is but would it be possible to use more specific attributes for
dokkatooHtmlPublicationPluginClasspathApiOnlyConsumable
? Maybeorg.gradle.usage = dokkatoo-plugin
?The text was updated successfully, but these errors were encountered: