Skip to content

Commit

Permalink
Update Dokka to 1.9.0 and add a workaround for build errors
Browse files Browse the repository at this point in the history
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
  • Loading branch information
IgnatBeresnev committed Sep 1, 2023
1 parent fa5cba1 commit c84450a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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")
}
}

Expand Down
4 changes: 4 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c84450a

Please sign in to comment.