Skip to content

Commit

Permalink
Fix read-only cache dir in DGP integration tests (#3731)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
adam-enko authored Aug 7, 2024
1 parent befa8d4 commit fa96393
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit fa96393

Please sign in to comment.