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

Upgrade dokka to 1.6.10, set org.gradle.jvmargs #568

Merged
merged 1 commit into from
Apr 6, 2022

Conversation

alancai98
Copy link
Member

I wasn't able to publish to maven due to some incompatibilities between the gradle version and the older version of dokka we were using. Sample errors when trying to gradle publish:

> Task :lang:dokka FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Some problems were found with the configuration of task ':lang:dokka' (type 'DokkaTask').
  - In plugin 'org.jetbrains.dokka' type 'org.jetbrains.dokka.gradle.DokkaTask' property 'dokkaRuntime' is missing an input or output annotation.

    Reason: A property without annotation isn't considered during up-to-date checking.

    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.

    Please refer to https://docs.gradle.org/7.4/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - In plugin 'org.jetbrains.dokka' type 'org.jetbrains.dokka.gradle.DokkaTask' property 'outputDirectory' is missing an input or output annotation.

    Reason: A property without annotation isn't considered during up-to-date checking.

    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.

    Please refer to https://docs.gradle.org/7.4/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - In plugin 'org.jetbrains.dokka' type 'org.jetbrains.dokka.gradle.DokkaTask' property 'reportNotDocumented' is missing an input or output annotation.

    Reason: A property without annotation isn't considered during up-to-date checking.

    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.

    Please refer to https://docs.gradle.org/7.4/userguide/validation_problems.html#missing_annotation for more details about this problem.

I encountered a similar problem when trying to publish the new version of PIG (partiql/partiql-ir-generator#114). Applied a similar fix from that PR.

Tested by publishing to maven local:

❯ ./gradlew publishToMavenLocal

> Task :lang:generatePigDomains
pig: universe file: <path_to_domain_file>/partiql.ion
pig: parsing the universe...
pig: permuting domains...
pig: applying Kotlin pre-processing
pig: applying the Kotlin template once for each domain...
pig: universe generation complete!

BUILD SUCCESSFUL in 3s
13 actionable tasks: 6 executed, 7 up-to-date

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@alancai98 alancai98 changed the title Upgrade dokka to 1.6.10, upgrade org.gradle.jvmargs Upgrade dokka to 1.6.10, set org.gradle.jvmargs Apr 5, 2022
@alancai98 alancai98 merged commit 51e7da7 into main Apr 6, 2022
@alancai98 alancai98 deleted the upgrade-dokka-1-6-10 branch April 6, 2022 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants