2018-12-26 08:07:24 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
jcenter()
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
|
|
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
|
2018-12-27 03:40:53 +00:00
|
|
|
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:$gradle_bintray_plugin_version"
|
2018-12-26 08:07:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 05:07:25 +00:00
|
|
|
plugins {
|
2020-08-18 06:50:11 +00:00
|
|
|
id "org.jetbrains.kotlin.multiplatform"
|
|
|
|
id "org.jetbrains.kotlin.plugin.serialization"
|
2019-12-03 05:07:25 +00:00
|
|
|
}
|
|
|
|
|
2020-02-14 18:50:35 +00:00
|
|
|
project.version = "$library_version"
|
2020-02-17 05:47:43 +00:00
|
|
|
project.group = "$library_group"
|
2018-12-27 03:40:53 +00:00
|
|
|
|
|
|
|
apply from: "publish.gradle"
|
|
|
|
|
2018-12-26 08:07:24 +00:00
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
jcenter()
|
|
|
|
mavenCentral()
|
|
|
|
maven { url "https://kotlin.bintray.com/kotlinx" }
|
|
|
|
}
|
|
|
|
|
2019-12-03 05:07:25 +00:00
|
|
|
kotlin {
|
|
|
|
jvm()
|
2020-08-18 06:50:11 +00:00
|
|
|
js {
|
2020-08-18 14:49:27 +00:00
|
|
|
browser { dceTask { keep "$library_group" } }
|
2020-08-18 06:50:11 +00:00
|
|
|
nodejs()
|
|
|
|
}
|
2019-02-26 08:01:26 +00:00
|
|
|
|
2019-12-03 05:07:25 +00:00
|
|
|
sourceSets {
|
|
|
|
commonMain {
|
|
|
|
dependencies {
|
|
|
|
implementation kotlin('stdlib')
|
2020-08-18 06:50:11 +00:00
|
|
|
api "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutines_version"
|
|
|
|
api "org.jetbrains.kotlinx:kotlinx-serialization-core:$kotlin_serialisation_runtime_version"
|
|
|
|
api "org.jetbrains.kotlinx:kotlinx-serialization-properties:$kotlin_serialisation_runtime_version"
|
2019-12-03 06:40:21 +00:00
|
|
|
|
2019-12-03 05:07:25 +00:00
|
|
|
api "com.soywiz.korlibs.klock:klock:$klock_version"
|
2019-12-03 06:40:21 +00:00
|
|
|
api "com.benasher44:uuid:$uuid_version"
|
2018-12-26 08:07:24 +00:00
|
|
|
|
2019-12-03 05:07:25 +00:00
|
|
|
api "io.ktor:ktor-client-core:$ktor_version"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
commonTest {
|
|
|
|
dependencies {
|
|
|
|
implementation kotlin('test-common')
|
|
|
|
implementation kotlin('test-annotations-common')
|
|
|
|
}
|
|
|
|
}
|
2019-12-02 04:56:59 +00:00
|
|
|
|
2019-12-03 05:07:25 +00:00
|
|
|
jvmMain {
|
|
|
|
dependencies {
|
|
|
|
api "io.ktor:ktor-client:$ktor_version"
|
|
|
|
api "io.ktor:ktor-server:$ktor_version"
|
|
|
|
|
|
|
|
api "io.ktor:ktor-server-host-common:$ktor_version"
|
|
|
|
api "io.ktor:ktor-client-cio:$ktor_version"
|
2020-05-14 15:18:33 +00:00
|
|
|
|
|
|
|
api "javax.activation:activation:$javax_activation_version"
|
2019-12-03 05:07:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
jvmTest {
|
|
|
|
dependencies {
|
|
|
|
implementation kotlin('test-junit')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 06:40:21 +00:00
|
|
|
jsMain {
|
|
|
|
dependencies {
|
|
|
|
api "io.ktor:ktor-client-js:$ktor_version"
|
|
|
|
}
|
|
|
|
}
|
2020-08-18 06:50:11 +00:00
|
|
|
|
|
|
|
jsTest {
|
|
|
|
dependencies {
|
|
|
|
implementation kotlin('test-junit')
|
|
|
|
implementation kotlin('test-js')
|
|
|
|
}
|
|
|
|
}
|
2019-12-03 05:07:25 +00:00
|
|
|
}
|
2020-05-16 16:24:50 +00:00
|
|
|
|
|
|
|
targets.all {
|
|
|
|
compilations.all {
|
|
|
|
kotlinOptions {
|
|
|
|
freeCompilerArgs += ["-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi", "-Xopt-in=kotlin.RequiresOptIn"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-12-26 08:07:24 +00:00
|
|
|
}
|