Skip to content

Commit

Permalink
Update Dokka to 1.9.0 and add a workaround for build errors (#3743)
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 authored and marychatte committed Nov 10, 2023
1 parent bf506c7 commit efe9cff
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 @@ -90,7 +90,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 @@ -151,7 +151,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 efe9cff

Please sign in to comment.