2022-06-29 07:47:21 +00:00
|
|
|
project.version = "$library_version"
|
|
|
|
project.group = "$library_group"
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
jvm {
|
|
|
|
compilations.main {
|
|
|
|
kotlinOptions {
|
2023-11-04 15:13:14 +00:00
|
|
|
jvmTarget = "17"
|
2022-06-29 07:47:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
js (IR) {
|
|
|
|
browser()
|
|
|
|
nodejs()
|
|
|
|
}
|
2023-04-03 17:30:24 +00:00
|
|
|
linuxX64()
|
|
|
|
mingwX64()
|
2023-10-20 16:07:14 +00:00
|
|
|
linuxArm64()
|
2022-06-29 07:47:21 +00:00
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
commonMain {
|
|
|
|
dependencies {
|
|
|
|
implementation libs.kotlin
|
|
|
|
api libs.kotlin.serialization
|
|
|
|
}
|
|
|
|
}
|
|
|
|
commonTest {
|
|
|
|
dependencies {
|
|
|
|
implementation libs.kotlin.test.common
|
|
|
|
implementation libs.kotlin.test.annotations.common
|
|
|
|
}
|
|
|
|
}
|
|
|
|
jvmTest {
|
|
|
|
dependencies {
|
|
|
|
implementation libs.kotlin.test.junit
|
|
|
|
}
|
|
|
|
}
|
|
|
|
jsTest {
|
|
|
|
dependencies {
|
|
|
|
implementation libs.kotlin.test.js
|
|
|
|
}
|
|
|
|
}
|
2023-09-02 13:02:30 +00:00
|
|
|
all {
|
|
|
|
languageSettings {
|
|
|
|
optIn('dev.inmo.tgbotapi.utils.RiskFeature')
|
|
|
|
optIn('dev.inmo.tgbotapi.utils.PreviewFeature')
|
|
|
|
optIn('dev.inmo.micro_utils.common.Warning')
|
|
|
|
optIn('dev.inmo.micro_utils.common.PreviewFeature')
|
|
|
|
}
|
|
|
|
}
|
2022-06-29 07:47:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
2023-11-04 15:13:14 +00:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2022-06-29 07:47:21 +00:00
|
|
|
}
|