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

./gradlew dokkaHtml fails #2237

Closed
vorburger opened this issue Oct 6, 2023 · 1 comment · Fixed by #2463
Closed

./gradlew dokkaHtml fails #2237

vorburger opened this issue Oct 6, 2023 · 1 comment · Fixed by #2463
Labels
P2 Medium priority issue type:documentation Improvements or additions to documentation

Comments

@vorburger
Copy link
Member

In the context of #2232, I'm interested in running the ./gradlew dokkaHtml that was introduced in #1466 as part of a (future, TBD) GitHub action which generates documentation, but I have noticed that this currently fails, like this:

 ./gradlew dokkaHtml
Directory '/usr/lib/jvm/java-11' (Maven Toolchains) used for java installations does not exist
Invalid Java installation found at '/usr/lib/jvm/openjdk-17' (Common Linux Locations). It will be re-checked in the next build. This might have performance impact if it keeps failing. Run the 'javaToolchains' task for more details.

> Task :datacapture:dokkaHtml
Initializing plugins
Dokka is performing: documentation for data-capture
Validity check
Creating documentation models
Transforming documentation model before merging
Merging documentation models
Transforming documentation model after merging
Creating pages
Transforming pages
Rendering
Running post-actions


> Task :knowledge:dokkaHtml
Initializing plugins
Dokka is performing: documentation for knowledge
Validity check
Creating documentation models
Transforming documentation model before merging
Merging documentation models
Transforming documentation model after merging
Creating pages
Transforming pages
Rendering
Running post-actions


> Task :knowledge:kaptReleaseKotlin FAILED

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':knowledge:kaptReleaseKotlin' (type 'KaptWithoutKotlincTask').
  - Gradle detected a problem with the following location: '/home/vorburger/git/github.com/google/android-fhir/knowledge/build/tmp/kapt3/classes/release'.
    
    Reason: Task ':knowledge:dokkaHtml' uses this output of task ':knowledge:kaptReleaseKotlin' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
    
    Possible solutions:
      1. Declare task ':knowledge:kaptReleaseKotlin' as an input of ':knowledge:dokkaHtml'.
      2. Declare an explicit dependency on ':knowledge:kaptReleaseKotlin' from ':knowledge:dokkaHtml' using Task#dependsOn.
      3. Declare an explicit dependency on ':knowledge:kaptReleaseKotlin' from ':knowledge:dokkaHtml' using Task#mustRunAfter.
    
    Please refer to https://docs.gradle.org/8.0/userguide/validation_problems.html#implicit_dependency for more details about this problem.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 55s
54 actionable tasks: 20 executed, 17 from cache, 17 up-to-date

@williamito is (only) this something you would be willing to contribute a PR to fix?

@jingtang10 @omarismail94 is there anyone else on the project willing to fix this?

@santosh-pingle santosh-pingle added type:documentation Improvements or additions to documentation P2 Medium priority issue labels Oct 9, 2023
@jingtang10
Copy link
Collaborator

@williamito can you take this please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Medium priority issue type:documentation Improvements or additions to documentation
Projects
Status: Complete
Development

Successfully merging a pull request may close this issue.

3 participants