2022-07-16 21:34:19 +03:00
|
|
|
plugins {
|
|
|
|
kotlin("multiplatform")
|
|
|
|
id("org.jetbrains.compose")
|
|
|
|
`maven-publish`
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
kotlin {
|
2022-07-23 11:24:37 +03:00
|
|
|
explicitApi = org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode.Warning
|
2022-07-16 21:34:19 +03:00
|
|
|
jvm {
|
|
|
|
compilations.all {
|
2022-09-10 15:20:01 +03:00
|
|
|
kotlinOptions.jvmTarget = space.kscience.gradle.KScienceVersions.JVM_TARGET.toString()
|
2022-07-16 21:34:19 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
sourceSets {
|
2022-07-23 11:24:37 +03:00
|
|
|
commonMain {
|
|
|
|
dependencies {
|
2022-07-23 11:30:33 +03:00
|
|
|
api(projects.mapsKtCore)
|
2022-12-23 22:16:16 +03:00
|
|
|
api(projects.mapsKtFeatures)
|
2022-07-16 21:34:19 +03:00
|
|
|
api(compose.foundation)
|
2022-10-12 15:03:02 +03:00
|
|
|
api(project.dependencies.platform(spclibs.ktor.bom))
|
|
|
|
api("io.ktor:ktor-client-core")
|
2022-07-23 11:24:37 +03:00
|
|
|
api("io.github.microutils:kotlin-logging:2.1.23")
|
2022-07-16 21:34:19 +03:00
|
|
|
}
|
|
|
|
}
|
2022-10-12 15:03:02 +03:00
|
|
|
val jvmMain by getting {
|
2022-09-20 13:57:41 +03:00
|
|
|
}
|
2022-10-12 15:03:02 +03:00
|
|
|
val jvmTest by getting {
|
2022-09-20 13:57:41 +03:00
|
|
|
dependencies {
|
2022-10-12 15:03:02 +03:00
|
|
|
implementation("io.ktor:ktor-client-cio")
|
2022-09-20 13:57:41 +03:00
|
|
|
implementation(compose.desktop.currentOs)
|
|
|
|
implementation(spclibs.kotlinx.coroutines.test)
|
|
|
|
|
|
|
|
implementation("ch.qos.logback:logback-classic:1.2.11")
|
|
|
|
|
|
|
|
implementation(kotlin("test-junit5"))
|
|
|
|
implementation("org.junit.jupiter:junit-jupiter:5.8.2")
|
|
|
|
}
|
|
|
|
}
|
2022-07-16 21:34:19 +03:00
|
|
|
}
|
2022-09-10 15:20:01 +03:00
|
|
|
}
|
|
|
|
|
2022-10-12 15:03:02 +03:00
|
|
|
java {
|
2022-09-10 15:20:01 +03:00
|
|
|
targetCompatibility = space.kscience.gradle.KScienceVersions.JVM_TARGET
|
2022-09-20 13:57:41 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<Test> {
|
|
|
|
useJUnitPlatform()
|
2022-07-16 21:34:19 +03:00
|
|
|
}
|