What gradle build do i run to download kotlin nati...
# kotlin-native
b
What gradle build do i run to download kotlin native tooling? I'm after bare-minimum work to get that tooling cached, so
./gradlew build
is a bit too fat for my use case.
s
its currently a one time download, all of it goes to ~./.konan folder. Can you just run a full build once, then rely on the cached artifacts in the konan folder?
b
I know it's a one-time task, but I'm preparing a base docker image for my builds and would like to cache that. Otherwise they'll be downloaded each time I build via docker.
./gradlew assemble
seems to be lowest option so far, but that still runs through the entire compilation. I'd love to have
nodeJsSetup
like task that you could invoke explicitly...
s
We did something semi custom. We had to set env variables KONAN_DATA_DIR and KONAN_DEPS to directories where we stored the kotlin native binaries. And the gradle property kotlin.native.home. So what we did was cache the libs in our own package, then referenced that package's directory, which avoided the download. This was mostly to make our IT happy. Not sure if it will help you.