2019-02-20 12:06:04 +08:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-03-11 13:54:01 +06:00
|
|
|
classpath libs.buildscript.kt.gradle
|
|
|
|
classpath libs.buildscript.kt.serialization
|
|
|
|
classpath libs.buildscript.gh.release
|
2019-02-20 12:06:04 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-22 23:00:07 +06:00
|
|
|
plugins {
|
2022-03-11 13:54:01 +06:00
|
|
|
alias(libs.plugins.multiplatform)
|
|
|
|
alias(libs.plugins.serialization)
|
2020-08-22 23:00:07 +06:00
|
|
|
}
|
2019-02-20 12:06:04 +08:00
|
|
|
|
2020-10-08 16:54:11 +06:00
|
|
|
project.version = "$library_version"
|
2020-12-02 14:32:26 +06:00
|
|
|
project.group = "dev.inmo"
|
2020-08-22 23:00:07 +06:00
|
|
|
|
2019-02-20 12:06:04 +08:00
|
|
|
apply from: "publish.gradle"
|
2020-10-08 15:15:11 +06:00
|
|
|
apply from: "github_release.gradle"
|
2019-02-20 12:06:04 +08:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
2020-08-22 23:00:07 +06:00
|
|
|
kotlin {
|
2023-05-11 16:24:38 +06:00
|
|
|
jvm {
|
|
|
|
compilations.main {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-08-31 11:29:46 +06:00
|
|
|
js(IR) {
|
2020-08-22 23:00:07 +06:00
|
|
|
browser()
|
|
|
|
nodejs()
|
|
|
|
}
|
2023-05-11 16:24:38 +06:00
|
|
|
linuxX64()
|
|
|
|
mingwX64()
|
2020-08-22 23:00:07 +06:00
|
|
|
|
2019-02-20 12:06:04 +08:00
|
|
|
|
2020-08-22 23:00:07 +06:00
|
|
|
sourceSets {
|
|
|
|
commonMain {
|
|
|
|
dependencies {
|
|
|
|
implementation kotlin('stdlib')
|
|
|
|
|
2022-03-11 13:54:01 +06:00
|
|
|
api libs.kt.coroutines
|
|
|
|
api libs.kt.serialization
|
|
|
|
api libs.klock
|
|
|
|
api libs.ktor.client
|
2023-05-11 16:24:38 +06:00
|
|
|
api libs.microutils.common
|
|
|
|
api libs.microutils.ktor.common
|
|
|
|
api libs.microutils.mimetypes
|
2020-08-22 23:00:07 +06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
commonTest {
|
|
|
|
dependencies {
|
|
|
|
implementation kotlin('test-common')
|
|
|
|
implementation kotlin('test-annotations-common')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
jvmTest {
|
|
|
|
dependencies {
|
|
|
|
implementation kotlin('test-junit')
|
2022-03-11 13:54:01 +06:00
|
|
|
implementation libs.ktor.client.okhttp
|
2020-08-22 23:00:07 +06:00
|
|
|
}
|
|
|
|
}
|
2020-12-02 14:08:19 +06:00
|
|
|
jsTest {
|
2020-08-22 23:00:07 +06:00
|
|
|
dependencies {
|
|
|
|
implementation kotlin('test-js')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-02-20 12:06:04 +08:00
|
|
|
}
|
2023-05-11 16:24:38 +06:00
|
|
|
|
|
|
|
java {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
}
|