From fa963933b236add55dcb9b7ba38a55c46d8765f1 Mon Sep 17 00:00:00 2001 From: Adam <152864218+adam-enko@users.noreply.github.com> Date: Wed, 7 Aug 2024 16:07:30 +0200 Subject: [PATCH] Fix read-only cache dir in DGP integration tests (#3731) The cache dir is set incorrectly, leading to this warning: > Read-only cache is configured but the directory layout isn't expected. You must have a pre-populated modules-2 directory at ~/.gradle/caches/modules-2/modules-2 . Please follow the instructions at https://docs.gradle.org/7.6.2/userguide/dependency_resolution.html#sub:shared-readonly-cache --- .../dokka/it/gradle/AbstractGradleIntegrationTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dokka-integration-tests/gradle/src/main/kotlin/org/jetbrains/dokka/it/gradle/AbstractGradleIntegrationTest.kt b/dokka-integration-tests/gradle/src/main/kotlin/org/jetbrains/dokka/it/gradle/AbstractGradleIntegrationTest.kt index 94da2a1daa..140d2bd1a0 100644 --- a/dokka-integration-tests/gradle/src/main/kotlin/org/jetbrains/dokka/it/gradle/AbstractGradleIntegrationTest.kt +++ b/dokka-integration-tests/gradle/src/main/kotlin/org/jetbrains/dokka/it/gradle/AbstractGradleIntegrationTest.kt @@ -154,11 +154,11 @@ abstract class AbstractGradleIntegrationTest : AbstractIntegrationTest() { * * See https://docs.gradle.org/8.9/userguide/dependency_resolution.html#sub:cache_copy * - * Note: Currently all Gradle versions store caches in `$GRADLE_USER_HOME/caches/modules-2`, + * Note: Currently all Gradle versions store caches in `$GRADLE_USER_HOME/caches/`, * but this might change. Check the docs. */ private val hostGradleDependenciesCache: Path by lazy { - hostGradleUserHome.resolve("caches/modules-2") + hostGradleUserHome.resolve("caches") } /** file-based Maven repositories with Dokka dependencies */