Skip to content
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

[K2] A lot of ERROR_CLASS during building Gradle API reference #3766

Closed
whyoleg opened this issue Aug 27, 2024 · 1 comment
Closed

[K2] A lot of ERROR_CLASS during building Gradle API reference #3766

whyoleg opened this issue Aug 27, 2024 · 1 comment
Labels
bug topic: K2 Issues / PRs that are related to the K2 migration. See #2888

Comments

@whyoleg
Copy link
Collaborator

whyoleg commented Aug 27, 2024

Describe the bug
There are a lot of ERROR_CLASS in DSL sourceSet. Probably there is some wrong with configuration of sources which worked for K1 but doesn't work for K2.

Screenshots
K1:
image

K2:
image

To Reproduce

  1. Clone https://github.com/whyoleg/gradle/tree/dokka-gradle-plugin-v2 (branch dokka-gradle-plugin-v2)
  2. Run ./gradlew :docs:dokkaGeneratePublicationHtml
  3. Check output in platforms/documentation/docs/build/dokka/html

K1/K2 can be switched in https://github.com/whyoleg/gradle/blob/dokka-gradle-plugin-v2/platforms/documentation/docs/gradle.properties

@whyoleg whyoleg added the bug label Aug 27, 2024
@whyoleg whyoleg modified the milestone: Dokka 2.1.0 Aug 27, 2024
@vmishenev vmishenev added the topic: K2 Issues / PRs that are related to the K2 migration. See #2888 label Aug 30, 2024
@whyoleg
Copy link
Collaborator Author

whyoleg commented Sep 16, 2024

This issue was caused by wrong configuration of custom source-sets: with K2 analysis we need to wire source-sets to have resolve work for DSL source-set
Fixed in whyoleg/gradle@041c5bd.

@whyoleg whyoleg closed this as completed Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug topic: K2 Issues / PRs that are related to the K2 migration. See #2888
Projects
None yet
Development

No branches or pull requests

2 participants