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

fix(deps): update dependency org.jetbrains.dokka:dokka-gradle-plugin to v2 #695

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 16, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
org.jetbrains.dokka:dokka-gradle-plugin 1.9.20 -> 2.0.0 age adoption passing confidence

Release Notes

Kotlin/dokka (org.jetbrains.dokka:dokka-gradle-plugin)

v2.0.0: 2.0.0

Dokka 2.0.0 focuses on simplifying configuration and preparing for support of future Kotlin language features. Key highlights include:

  • Dokka Gradle Plugin v2: revamped Gradle plugin based on Dokkatoo.
  • Experimental K2 Analysis: support for K2 compiler frontend.
  • HTML Improvements: better accessibility and easier customization.

More details about each of the changes below. See Dokka 2.0.0 milestone for the list of all changes.

Dokka's Gradle plugin v2 based on Dokkatoo

Please check the migration guide for the update procedure and give feedback!

Dokka 2.0.0 introduces significant improvements to Dokka Gradle plugin, aligning more closely with Gradle best practices:

  • Adopts Gradle types, which leads to better performance.
  • Uses an intuitive top-level DSL configuration instead of a low-level task-based setup, which simplifies the build scripts and their readability.
  • Takes a more declarative approach to documentation aggregation, which makes multi-project documentation easier to manage.
  • Uses a type-safe plugin configuration, which improves the reliability and maintainability of your build scripts.
  • Fully supports Gradle configuration cache and build cache, which improves performance and simplifies build work.
Changes from Dokka 2.0.0-Beta

Dokka's K2 analysis

Dokka 2.0.0 introduces K2 analysis, which is currently in an experimental stage. Dokka's K2 analysis leverages Kotlin's K2 compiler frontend for analysing code and uses the same shared Analysis API, which is used in IntelliJ IDEA’s K2 mode. The output with K2 analysis should mostly match that of K1 analysis, but there may be minor differences. We are actively working towards stabilizing K2 analysis and are planning to enable K2 analysis by default in future.

To opt in to Dokka's K2 analysis, add the following flag to your project's gradle.properties file:

org.jetbrains.dokka.experimental.tryK2=true
Known limitations:

We would greatly value your feedback if you encounter any of these limitations.

Potential differences between the outputs of K1 and K2:

While the output of K2 analysis aims to align with K1, there are some differences to be aware of:

  • Java synthetic properties: rendering may vary (details).
  • KDoc links: resolution and rendering differences (details).
  • Inconsistent documentable rendering order (#​3590).
  • Enum entries: anonymous and overridden methods are no longer rendered (#​3129).
  • Other differences may arise due to variations in type inference between K1 and K2.

HTML format

Dokka 2.0.0 introduces some changes to HTML output. We updated the structure of some elements and classes, particularly in the navigation and sidebar, to improve accessibility and simplify maintenance. These changes only affect you if you previously customized Dokka styles.

  • We removed redundant wrappers like navigation--inner and navigation-title.
  • We reworked blocks such as versions-dropdown to make them more accessible.
  • We renamed classes like navigation-controls--homepage to improve consistency. For example, it’s now called navigation-controls--btn_homepage.

For more information, see the pull request.

The easiest way to update your current templates is to adjust the new templates to your needs.

Bugfixes

Other changes

Feedback

We would appreciate your feedback!

Full Changelog: Kotlin/dokka@v1.9.20...v2.0.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

github-actions bot commented Dec 16, 2024

Diffuse output:

OLD: diffuse-base-file
NEW: android.jar

       │         compressed         │         uncompressed         
       ├──────────┬──────────┬──────┼───────────┬───────────┬──────
 JAR   │ old      │ new      │ diff │ old       │ new       │ diff 
───────┼──────────┼──────────┼──────┼───────────┼───────────┼──────
 class │ 55.9 KiB │ 55.9 KiB │  0 B │ 116.9 KiB │ 116.9 KiB │  0 B 
 other │    3 KiB │    3 KiB │  0 B │   1.4 KiB │   1.4 KiB │  0 B 
───────┼──────────┼──────────┼──────┼───────────┼───────────┼──────
 total │   59 KiB │   59 KiB │  0 B │ 118.3 KiB │ 118.3 KiB │  0 B 

 CLASSES │ old │ new │ diff      
─────────┼─────┼─────┼───────────
 classes │  34 │  34 │ 0 (+0 -0) 
 methods │ 251 │ 251 │ 0 (+0 -0) 
  fields │  41 │  41 │ 0 (+0 -0)

Copy link

codecov bot commented Dec 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.46%. Comparing base (79fb2ef) to head (087303f).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #695   +/-   ##
=========================================
  Coverage     82.46%   82.46%           
  Complexity       47       47           
=========================================
  Files            29       29           
  Lines           559      559           
  Branches         42       42           
=========================================
  Hits            461      461           
  Misses           75       75           
  Partials         23       23           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@renovate renovate bot force-pushed the renovate/major-maven.dokka branch from d6676f2 to 087303f Compare December 19, 2024 23:43
@mateuszkwiecinski mateuszkwiecinski merged commit 4bf04f2 into master Dec 20, 2024
28 checks passed
@mateuszkwiecinski mateuszkwiecinski deleted the renovate/major-maven.dokka branch December 20, 2024 06:35
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.

1 participant