When building K/N using Gradle the default path for the caches is ~/.konan. Is it possible to change that path? For example similarly to how Gradle cache fodler can be set using the env variable GRADLE_USER_HOME.
2 Likes
Yes, you can change the default /.konan/ location using the environment variable KONAN_DATA_DIR, see here.
1 Like
Thanks!
Hi! I am using Kotlin 1.9.23 and even though I specified the environment variable KONAN_DATA_DIR, after the build I find a .konan-folder in my home-directory. Was the function to override the locaction removed?
Btw, I did also try already adding konan.data.dir=/custom/path to ‘./gradle.properties’.
2 Likes