1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-04 23:43:47 +00:00
tgbotapi/build.gradle

78 lines
2.2 KiB
Groovy
Raw Normal View History

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"
}
2019-12-03 06:18:46 +00:00
project.version = "0.20.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()
// js()
2019-12-03 05:07:25 +00:00
sourceSets {
commonMain {
dependencies {
implementation kotlin('stdlib')
api "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutines_version"
api "org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:$kotlin_serialisation_runtime_version"
api "com.soywiz.korlibs.klock:klock:$klock_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')
}
}
// jsMain {
// dependencies {
// api "org.jetbrains.kotlinx:kotlinx-serialization-runtime-js:$kotlin_serialisation_runtime_version"
// }
// }
}
2018-12-26 08:07:24 +00:00
}