KotlinMultiplatformProjectT.../gradle/templates/mppJsProject.gradle

32 lines
656 B
Groovy
Raw Permalink Normal View History

2021-03-07 15:22:27 +00:00
project.version = "$version"
project.group = "$group"
// apply from: "$publishGradlePath"
kotlin {
2021-10-25 09:16:16 +00:00
js (IR) {
2021-03-07 15:22:27 +00:00
browser()
nodejs()
}
sourceSets {
commonMain {
dependencies {
2022-01-29 15:47:34 +00:00
implementation libs.kotlin
api libs.kotlin.serialization
2021-03-07 15:22:27 +00:00
}
}
commonTest {
dependencies {
2022-01-29 15:47:34 +00:00
implementation libs.kotlin.test.common
implementation libs.kotlin.test.annotations.common
2021-03-07 15:22:27 +00:00
}
}
jsTest {
dependencies {
2022-01-29 15:47:34 +00:00
implementation libs.kotlin.test.js
2021-03-07 15:22:27 +00:00
}
}
}
}