plugins { kotlin("multiplatform") version "1.6.0" id("com.bnorm.power.kotlin-power-assert") version "0.10.0" } repositories { mavenCentral() } kotlin { jvm() js(IR) { browser() nodejs() } val osName = System.getProperty("os.name") when { "Windows" in osName -> mingwX64("native") "Mac OS" in osName -> macosX64("native") else -> linuxX64("native") } sourceSets { val commonMain by getting { } val commonTest by getting { dependencies { implementation(kotlin("test-common")) implementation(kotlin("test-annotations-common")) } } val jvmTest by getting { dependencies { implementation(kotlin("test-junit")) } } val jsTest by getting { dependencies { implementation(kotlin("test-js")) } } val nativeMain by getting { dependsOn(commonMain) } val nativeTest by getting { dependsOn(commonTest) } } } configure { functions = listOf( "kotlin.assert", "kotlin.test.assertTrue", "kotlin.require", "com.bnorm.power.AssertScope.assert", "com.bnorm.power.assert", "com.bnorm.power.dbg" ) }