From 609c5469bbc0ba3516e760c6e61cf7df2b5c7ff7 Mon Sep 17 00:00:00 2001 From: aSemy <897017+aSemy@users.noreply.github.com> Date: Tue, 25 Apr 2023 21:12:43 +0200 Subject: Set cacheRoot using `convention()`, not `set()` (#2983) --- .../src/main/kotlin/org/jetbrains/dokka/gradle/DokkaPlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runners/gradle-plugin/src/main/kotlin/org/jetbrains') 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 { tasks.withType().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 })) } } -- cgit