aboutsummaryrefslogtreecommitdiff
path: root/runners
diff options
context:
space:
mode:
authoraSemy <897017+aSemy@users.noreply.github.com>2023-04-25 21:12:43 +0200
committerGitHub <noreply@github.com>2023-04-25 21:12:43 +0200
commit609c5469bbc0ba3516e760c6e61cf7df2b5c7ff7 (patch)
treefa21f96edf0fd8256a02a639e5c7eb01c1fafe05 /runners
parent5315c6a8cf2e08947dc013fdd60f293f76a0a1bd (diff)
downloaddokka-609c5469bbc0ba3516e760c6e61cf7df2b5c7ff7.tar.gz
dokka-609c5469bbc0ba3516e760c6e61cf7df2b5c7ff7.tar.bz2
dokka-609c5469bbc0ba3516e760c6e61cf7df2b5c7ff7.zip
Set cacheRoot using `convention()`, not `set()` (#2983)
Diffstat (limited to 'runners')
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaPlugin.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaPlugin.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaPlugin.kt
index c30fc181..ba324057 100644
--- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaPlugin.kt
+++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaPlugin.kt
@@ -108,7 +108,7 @@ open class DokkaPlugin : Plugin<Project> {
tasks.withType<AbstractDokkaTask>().configureEach {
val formatClassifier = name.removePrefix("dokka").decapitalize()
outputDirectory.convention(project.layout.buildDirectory.dir("dokka/$formatClassifier"))
- cacheRoot.set(DokkaDefaults.cacheRoot)
+ cacheRoot.convention(project.layout.dir(providers.provider { DokkaDefaults.cacheRoot }))
}
}