Skip to content

Update to Dokka 2.0.0 (beta) #10

@Jolanrensen

Description

@Jolanrensen

Korro is still based on Dokka/Kotlin 1.8.20. Now Kotlin 2.0 has been out a while, it's getting more and more out of date. Especially when new language features are being introduced.

I faced the same issue for my documentation preprocessor which also uses Dokka under the hood for the Gradle plugin. However, after a lot of trial and error, I managed to update it to Dokka 2.0.0-Beta, which uses Kotlin 2.0.20 to parse your project files. Dokka 2.0.0 should be released soon, but it doesn't hurt to prepare for it with the beta version already :).

You can see my PR for inspiration, but at the end of the day, not much had to change, just some util functions (which I stole borrowed from Dokka).

You can also decide to go the route of #9 but I found it very difficult to initiate the Kotlin Analysis API from Gradle. Dokka already handles this for us atm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions