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

Update Dokka to 1.9.0 and add a workaround for build errors #3743

Merged
merged 1 commit into from Nov 3, 2023

Conversation

IgnatBeresnev
Copy link
Contributor

Subsystem
Infrastructure

Motivation
Dokka stopped working after #3662 was merged into main. If you run Dokka's tasks now, it will lead to build failures related to the resolution of platform dependencies, likely caused by the combination of Gradle 8 + kotlin.mpp.enableCInteropCommonization=true

Solution
Update Dokka to 1.9.0 and use the proposed workaround flag, which changes the underlying dependency resolution algorithm.

For more details, see Kotlin/dokka#3153.

Adds a workaround for running Dokka with Gradle 8 and Kotlin 1.9.0; otherwise it leads to build errors related to platform dependency resolution

For more details, see Kotlin/dokka#3153
@IgnatBeresnev
Copy link
Contributor Author

Note: because ktor has many nested modules, you need to run Dokka's multimodule task with a semicolon (i.e only on the root project):

./gradlew :dokkaHtmlMultiModule

I've sent a fix for the publishing script and explained it in more detail there, see ktorio/api.ktor.io#11

@e5l e5l requested a review from rsinukov October 18, 2023 13:08
@e5l e5l merged commit 9a411bb into ktorio:main Nov 3, 2023
11 of 13 checks passed
@IgnatBeresnev IgnatBeresnev deleted the fix-dokka-1.9.0 branch November 3, 2023 17:09
marychatte pushed a commit that referenced this pull request Nov 10, 2023
Adds a workaround for running Dokka with Gradle 8 and Kotlin 1.9.0; otherwise it leads to build errors related to platform dependency resolution

For more details, see Kotlin/dokka#3153
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.

None yet

3 participants