1plugins { 2 id 'org.jetbrains.kotlin.multiplatform' 3} 4 5repositories { 6 // Coroutines from the outer project are published by previous CI buils step 7 mavenLocal() 8 mavenCentral() 9 maven { url "https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev" } 10} 11 12kotlin { 13 jvm() 14 js(IR) { 15 nodejs() 16 } 17 18 sourceSets { 19 commonMain { 20 dependencies { 21 implementation kotlin('stdlib-common') 22 implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version" 23 } 24 } 25 commonTest { 26 dependencies { 27 implementation kotlin('test-common') 28 implementation kotlin('test-annotations-common') 29 implementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines_version" 30 } 31 } 32 jsTest { 33 dependencies { 34 implementation kotlin('test-js') 35 } 36 } 37 jvmTest { 38 dependencies { 39 implementation kotlin('test') 40 implementation kotlin('test-junit') 41 } 42 } 43 } 44 targets { 45 configure([]) { 46 tasks.getByName(compilations.main.compileKotlinTaskName).kotlinOptions { 47 jvmTarget = "1.8" 48 } 49 } 50 } 51} 52 53