Hi, I have a backend project that uses ktor on the...
# multiplatform
g
Hi, I have a backend project that uses ktor on the JVM. It depends on a multiplatform project like so:
Copy code
dependencies {
    implementation(project(":api"))
}
Now when building the project in CI I see this:
Copy code
> Configure project :api
Please wait while Kotlin/Native compiler 1.9.20 is being installed.
Download <https://download.jetbrains.com/kotlin/native/builds/releases/1.9.20/linux-x86_64/kotlin-native-prebuilt-linux-x86_64-1.9.20.tar.gz> (198.16 MB)
Download kotlin-native-prebuilt-linux-x86_64-1.9.20.tar.gz finished, took 2 s 786 ms
Unpack Kotlin/Native compiler to /root/.konan/kotlin-native-prebuilt-linux-x86_64-1.9.20
Unpack Kotlin/Native compiler to /root/.konan/kotlin-native-prebuilt-linux-x86_64-1.9.20 finished, took 4 s 513 ms
w: The following Kotlin/Native targets cannot be built on this machine and are disabled:
iosArm64, iosSimulatorArm64, iosX64
To hide this message, add 'kotlin.native.ignoreDisabledTargets=true' to the Gradle properties.
I actually dont want the build to waste time here on the native target. How can I avoid this?
h
What exactly do you want to avoid, downloading the native toolchain when building the jvm target only? This is possible with 2.0
👍 1