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

56 lines
1.5 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 {
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
}
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-20 04:51:05 +00:00
js(BOTH) {
2020-08-19 07:49:30 +00:00
browser()
nodejs()
}
2019-12-03 05:07:25 +00:00
sourceSets {
commonMain {
dependencies {
implementation kotlin('stdlib')
2020-08-20 05:55:39 +00: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 16:24:50 +00:00
}
}
}
2018-12-26 08:07:24 +00:00
}