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 {
|
|
|
|
id "org.jetbrains.kotlin.multiplatform" version "$kotlin_version"
|
|
|
|
id "org.jetbrains.kotlin.plugin.serialization" version "$kotlin_version"
|
|
|
|
}
|
|
|
|
|
2020-01-15 06:31:17 +00:00
|
|
|
project.version = "0.22.0"
|
2019-12-03 05:07:25 +00:00
|
|
|
project.group = "com.github.insanusmokrassar"
|
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()
|
2019-12-03 06:40:21 +00:00
|
|
|
js()
|
2019-02-26 08:01:26 +00:00
|
|
|
|
2019-12-03 05:07:25 +00:00
|
|
|
sourceSets {
|
|
|
|
commonMain {
|
|
|
|
dependencies {
|
|
|
|
implementation kotlin('stdlib')
|
2019-12-03 06:40:21 +00:00
|
|
|
api "org.jetbrains.kotlinx:kotlinx-coroutines-core-common:$kotlin_coroutines_version"
|
2019-12-03 05:07:25 +00:00
|
|
|
api "org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:$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 "org.jetbrains.kotlinx:kotlinx-serialization-runtime:$kotlin_serialisation_runtime_version"
|
|
|
|
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
jvmTest {
|
|
|
|
dependencies {
|
|
|
|
implementation kotlin('test-junit')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 06:40:21 +00:00
|
|
|
jsMain {
|
|
|
|
dependencies {
|
|
|
|
api "org.jetbrains.kotlinx:kotlinx-serialization-runtime-js:$kotlin_serialisation_runtime_version"
|
|
|
|
api "org.jetbrains.kotlinx:kotlinx-coroutines-core-js:$kotlin_coroutines_version"
|
|
|
|
api "io.ktor:ktor-client-js:$ktor_version"
|
|
|
|
}
|
|
|
|
}
|
2019-12-03 05:07:25 +00:00
|
|
|
}
|
2018-12-26 08:07:24 +00:00
|
|
|
}
|