Matei David
11/26/2025, 10:20 PM~/.gradle. What I currently do is to populate build/gradle with what I need, namely gradle.properties, some init.d/ scripts, and I point TestKit there with withTestKitDir(). This is mostly ok, except that the various Gradle distributions are downloaded in such test user home directories. This is annoying because it's slow the first time around, and also because these directories are not getting cleaned up. E.g. in 1 project after playing with only 9.2.0 and 9.2.1, I have almost 2GB of mostly generated Gradle jars and transforms. Is there a way to improve this? So basically, I don't care to isolate the Gradle artifacts and transforms from my primary Gradle user home, but I definitely want my user home properties and init scripts not to be visible in tests. Is there some way to achieve properties/init script isolation while also avoiding cache duplication?Thomas Broyer
11/27/2025, 8:00 AMMatei David
11/27/2025, 2:00 PM~/.gradle/caches but not ~/.gradle/init.d . On Linux, I could try to hack this via symlinks, e.g. build/gradle/caches => ~/.gradle/caches but not on Windows. So what I'm really asking for is a way to configure the user home properties/init scrips separately from the user home caches, at Gradle level.Adam
11/27/2025, 3:31 PMGRADLE_RO_DEP_CACHE could help
https://docs.gradle.org/current/userguide/dependency_caching.html#sec:shared-readonly-cache
Example in Dokka
https://github.com/Kotlin/dokka/blob/v2.1.0/dokka-integration-tests/gradle/src/main/kotlin/org/jetbrains/dokka/it/gradle/AbstractGradleIntegrationTest.kt#L253-L268Matei David
11/28/2025, 12:37 AM