KotlinPublicationScriptsBui.../mppProjectWithSerialization.gradle

39 lines
936 B
Groovy
Raw Permalink Normal View History

2021-03-01 14:17:06 +00:00
project.version = "$version" + System.getenv("additional_version")
project.group = "$group"
// apply from: "$publishGradlePath"
kotlin {
2022-11-10 17:48:59 +00:00
jvm()
2021-03-01 14:17:06 +00:00
js (IR) {
browser()
nodejs()
}
sourceSets {
commonMain {
dependencies {
implementation kotlin('stdlib')
api "org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlin_serialisation_core_version"
}
}
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
jvmTest {
dependencies {
implementation kotlin('test-junit')
}
}
jsTest {
dependencies {
implementation kotlin('test-js')
implementation kotlin('test-junit')
}
}
}
}