[Gradle Native] Added Kotlin Native Provider to all native tasks

This provider is a first step of "Kotlin Native Toolchain".
This solves several problems:
1) Resolving K/N bundle during configuration phase ->
now it happens during execution phase
2) Downloading K/N bundle with internal mechanisms ->
now it uses Gradle dependency resolvers and Transform Artifact

^KT-58303
^KT-52567
^KT-49268
This commit is contained in:
Dmitrii Krasnov
2023-11-24 16:18:23 +01:00
committed by Space Team
parent 48f5e1d05c
commit 7165d15d59
32 changed files with 787 additions and 115 deletions
@@ -20,9 +20,6 @@ internal val konanHome: File by lazy {
.run {
project.plugins.apply("kotlin-multiplatform")
// TODO(Dmitrii Krasnov): remove this, when KT-58303 is done
project.extraProperties.set("kotlin.native.distribution.downloadFromMaven","false")
(project.kotlinExtension as KotlinMultiplatformExtension).apply {
macosX64()
macosArm64()