From 6dc65992a78be9cb62128bfb8617d17e21fa9943 Mon Sep 17 00:00:00 2001 From: Olivier Chalet Date: Mon, 19 Aug 2024 09:32:18 +0100 Subject: [PATCH] US2012874: fix issue with Dokka plugin following to Gradle plugin - see https://github.com/Kotlin/dokka/issues/3153 --- access-checkout/gradle/upload.gradle | 4 ++++ build.gradle | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/access-checkout/gradle/upload.gradle b/access-checkout/gradle/upload.gradle index 9ccc2e2b..535e94ad 100644 --- a/access-checkout/gradle/upload.gradle +++ b/access-checkout/gradle/upload.gradle @@ -13,6 +13,10 @@ dokkaJavadoc.configure { } } +// Task dependency is required due to an issue in Dokka +// see https://github.com/Kotlin/dokka/issues/3153 +dokkaJavadoc.dependsOn(':access-checkout:generateReleaseRFile') + tasks.register('javadocJar', Jar) { dependsOn dokkaJavadoc archiveClassifier = "javadoc" diff --git a/build.gradle b/build.gradle index e471e729..ded29acc 100644 --- a/build.gradle +++ b/build.gradle @@ -11,7 +11,7 @@ buildscript { classpath 'com.android.tools.build:gradle:8.5.2' classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21' - classpath 'org.jetbrains.dokka:dokka-gradle-plugin:1.6.21' + classpath 'org.jetbrains.dokka:dokka-gradle-plugin:1.9.20' classpath 'org.jacoco:org.jacoco.core:0.8.10' classpath 'io.github.gradle-nexus:publish-plugin:1.1.0' classpath 'org.jlleitschuh.gradle:ktlint-gradle:10.1.0'