Add a test for native dependency propagation
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
plugins {
|
||||
kotlin("multiplatform") version "1.3.60-dev-2515"
|
||||
}
|
||||
|
||||
repositories {
|
||||
jcenter()
|
||||
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-dev") }
|
||||
}
|
||||
|
||||
kotlin {
|
||||
val jvm = jvm()
|
||||
val iosDev = iosArm64()
|
||||
val iosSim = iosX64()
|
||||
val watchDev = watchosArm32()
|
||||
val watchSim = watchosX86()
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting
|
||||
val appleMain by creating {
|
||||
dependsOn(commonMain)
|
||||
}
|
||||
|
||||
val iosMain by creating {
|
||||
dependsOn(appleMain)
|
||||
}
|
||||
|
||||
configure(listOf(watchDev, watchSim)) {
|
||||
compilations["main"].defaultSourceSet.dependsOn(appleMain)
|
||||
}
|
||||
|
||||
configure(listOf(iosDev, iosSim)) {
|
||||
compilations["main"].defaultSourceSet.dependsOn(iosMain)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
org.jetbrains.kotlin.native.home=../kotlin-native-data-dir/kotlin-native-PLATFORM-VERSION
|
||||
kotlin.mpp.enableGranularSourceSetsMetadata=true
|
||||
@@ -0,0 +1,7 @@
|
||||
pluginManagement {
|
||||
repositories {
|
||||
jcenter()
|
||||
gradlePluginPortal()
|
||||
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-dev") }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user