From c84450ac59e22639d53d7529391ebfc91b235c16 Mon Sep 17 00:00:00 2001 From: IgnatBeresnev Date: Fri, 1 Sep 2023 20:18:18 +0200 Subject: [PATCH] Update Dokka to 1.9.0 and add a workaround for build errors 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 https://github.com/Kotlin/dokka/issues/3153 --- build.gradle.kts | 4 ++-- gradle.properties | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 7312ced84f6..694e1592507 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -91,7 +91,7 @@ val disabledExplicitApiModeProjects = listOf( apply(from = "gradle/compatibility.gradle") plugins { - id("org.jetbrains.dokka") version "1.7.20" apply false + id("org.jetbrains.dokka") version "1.9.0" apply false id("org.jetbrains.kotlinx.binary-compatibility-validator") version "0.13.2" id("kotlinx-atomicfu") version "0.21.0" apply false id("com.osacky.doctor") version "0.8.1" @@ -152,7 +152,7 @@ fun configureDokka() { val dokkaPlugin by configurations dependencies { - dokkaPlugin("org.jetbrains.dokka:versioning-plugin:1.7.20") + dokkaPlugin("org.jetbrains.dokka:versioning-plugin:1.9.0") } } diff --git a/gradle.properties b/gradle.properties index 24047da257a..31ba04fc648 100644 --- a/gradle.properties +++ b/gradle.properties @@ -29,3 +29,7 @@ kotlin.native.ignoreIncorrectDependencies=true kotlin.native.binary.memoryModel=experimental #kotlinx.atomicfu.enableJvmIrTransformation=true #kotlinx.atomicfu.enableJsIrTransformation=true + +# dokka +# workaround for resolving platform dependencies, see https://github.com/Kotlin/dokka/issues/3153 +org.jetbrains.dokka.classpath.useNativeDistributionAccessor=true