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

Forward Dokka Generator messages to Gradle logger #3833

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

adam-enko
Copy link
Member

@adam-enko adam-enko commented Sep 26, 2024

Update Dokka Gradle tasks to forward DokkaGenerator logs to the appropriate levels.

  • debug → debug
  • info → info
  • progress → info
  • warn → warn
  • error → error

KT-71719

@adam-enko adam-enko marked this pull request as ready for review September 26, 2024 08:32
@adam-enko adam-enko marked this pull request as draft September 26, 2024 10:41
@adam-enko adam-enko force-pushed the adam/feat/KT-70336/log-dokka-generator-messages branch from 7d5cf5b to 5bfc667 Compare October 1, 2024 08:36
@adam-enko adam-enko added this to the Dokka 2.0.0 milestone Oct 1, 2024
@adam-enko adam-enko added the runner: Gradle plugin An issue/PR related to Dokka's Gradle plugin label Oct 1, 2024
@adam-enko adam-enko marked this pull request as ready for review October 1, 2024 09:57
.build {
output.invariantNewlines() shouldContain """
> Task :dokkaGenerateModuleHtml
e: [:dokkaGenerateModuleHtml] test error message
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBH, I don't think that duplicating task name will be useful, but I'm not against having it :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put the task name in because it can be confusing if there are multiple generations at the same time, or if running with --quiet. It's already a bit confusing when aggregating, because sometimes the same error is shown for both module and publication generation. But we can revisit the message if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
runner: Gradle plugin An issue/PR related to Dokka's Gradle plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants