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

59 lines
1.7 KiB
Plaintext
Raw Normal View History

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-10-12 15:03:02 +03:00
val jvmTest by getting {
dependencies {
2022-10-12 15:03:02 +03:00
implementation("io.ktor:ktor-client-cio")
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
}
tasks.withType<Test> {
useJUnitPlatform()
2023-01-12 11:52:54 +03:00
}
readme {
description = "Compose-multiplaform implementation for web-mercator tiled maps"
maturity = space.kscience.gradle.Maturity.EXPERIMENTAL
propertyByTemplate("artifact", rootProject.file("docs/templates/ARTIFACT-TEMPLATE.md"))
feature(
id = "osm",
) { "OpenStreetMap tile provider." }
2022-07-16 21:34:19 +03:00
}