1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-02-16 19:52:01 +00:00
tgbotapi/TelegramBotAPI/build.gradle

56 lines
1.5 KiB
Groovy
Raw Normal View History

2018-12-26 16:07:24 +08: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 11:40:53 +08:00
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:$gradle_bintray_plugin_version"
2018-12-26 16:07:24 +08:00
}
}
2019-12-03 11:07:25 +06:00
plugins {
2020-08-18 12:50:11 +06:00
id "org.jetbrains.kotlin.multiplatform"
id "org.jetbrains.kotlin.plugin.serialization"
2019-12-03 11:07:25 +06:00
}
project.version = "$library_version"
2020-02-17 11:47:43 +06:00
project.group = "$library_group"
2018-12-27 11:40:53 +08:00
apply from: "publish.gradle"
2018-12-26 16:07:24 +08:00
repositories {
mavenLocal()
jcenter()
mavenCentral()
maven { url "https://kotlin.bintray.com/kotlinx" }
}
2019-12-03 11:07:25 +06:00
kotlin {
jvm()
2020-08-20 10:51:05 +06:00
js(BOTH) {
2020-08-19 13:49:30 +06:00
browser()
nodejs()
}
2019-12-03 11:07:25 +06:00
sourceSets {
commonMain {
dependencies {
implementation kotlin('stdlib')
2020-08-20 11:55:39 +06:00
if ((project.hasProperty('RELEASE_MODE') && project.property('RELEASE_MODE') == "true") || System.getenv('RELEASE_MODE') == "true") {
api "${project.group}:TelegramBotAPI-core:$library_version"
api "${project.group}:TelegramBotAPI-extensions-api:$library_version"
api "${project.group}:TelegramBotAPI-extensions-utils:$library_version"
} else {
api project(":TelegramBotAPI-core")
api project(":TelegramBotAPI-extensions-api")
api project(":TelegramBotAPI-extensions-utils")
}
2020-05-16 22:24:50 +06:00
}
}
}
2018-12-26 16:07:24 +08:00
}