1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 16:23:48 +00:00
tgbotapi/TelegramBotAPI/build.gradle

95 lines
3.0 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"
}
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()
2019-12-03 06:40:21 +00:00
js()
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"
2020-03-22 07:37:01 +00:00
api "org.jetbrains.kotlinx:kotlinx-serialization-properties-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"
2020-03-22 07:37:01 +00:00
api "org.jetbrains.kotlinx:kotlinx-serialization-properties:$kotlin_serialisation_runtime_version"
2019-12-03 05:07:25 +00:00
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 "org.jetbrains.kotlinx:kotlinx-serialization-runtime-js:$kotlin_serialisation_runtime_version"
2020-03-22 07:37:01 +00:00
api "org.jetbrains.kotlinx:kotlinx-serialization-properties-js:$kotlin_serialisation_runtime_version"
2019-12-03 06:40:21 +00:00
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
}
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
}