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