maps-kt/maps-kt-compose/build.gradle.kts

51 lines
1.3 KiB
Plaintext
Raw Normal View History

2022-07-16 21:34:19 +03:00
import org.jetbrains.compose.compose
plugins {
kotlin("multiplatform")
id("org.jetbrains.compose")
`maven-publish`
}
val ktorVersion: String by rootProject.extra
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-07-16 21:34:19 +03:00
api(compose.foundation)
api("io.ktor:ktor-client-core:$ktorVersion")
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
}
}
val jvmMain by getting{
}
val jvmTest by getting{
dependencies {
implementation("io.ktor:ktor-client-cio:$ktorVersion")
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
}
java{
targetCompatibility = space.kscience.gradle.KScienceVersions.JVM_TARGET
}
tasks.withType<Test> {
useJUnitPlatform()
2022-07-16 21:34:19 +03:00
}