BankingClient/fints4k/build.gradle

139 lines
3.1 KiB
Groovy
Raw Normal View History

plugins {
id "org.jetbrains.kotlin.multiplatform"
id "org.jetbrains.kotlin.plugin.serialization" version "$kotlinVersion"
2020-06-14 18:30:34 +00:00
id "maven-publish"
}
kotlin {
// Enable the default target hierarchy:
targetHierarchy.default()
jvm {
jvmToolchain(8)
withJava() // not allowed if android { } is present
testRuns["test"].executionTask.configure {
useJUnitPlatform()
testLogging { // This is for logging and can be removed.
events("passed", "skipped", "failed")
}
2020-07-02 21:14:14 +00:00
}
}
js(IR) {
2024-08-19 09:39:17 +00:00
binaries.executable()
browser {
testTask {
useKarma {
2024-08-17 01:56:07 +00:00
// useChromeHeadless()
useFirefoxHeadless()
}
}
}
nodejs()
}
linuxX64()
mingwX64()
ios {
binaries {
framework {
baseName = "fints4k"
}
}
}
iosSimulatorArm64()
macosX64()
macosArm64()
watchos()
watchosSimulatorArm64()
tvos()
tvosSimulatorArm64()
sourceSets {
commonMain {
dependencies {
api("org.jetbrains.kotlinx:kotlinx-datetime:$kotlinxDateTimeVersion")
2020-07-11 10:03:28 +00:00
2024-08-19 06:53:53 +00:00
implementation("net.codinux.log:kmp-log:1.5.1")
2023-07-06 16:21:45 +00:00
2024-08-19 19:52:16 +00:00
implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:$kotlinxSerializationVersion")
2022-02-13 21:01:13 +00:00
2024-08-19 09:39:03 +00:00
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
implementation "co.touchlab:stately-concurrency:1.2.0"
implementation("io.ktor:ktor-client-core:$ktorVersion")
}
}
commonTest {
dependencies {
2023-07-06 14:52:37 +00:00
implementation kotlin("test")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesVersion")
}
}
2019-10-02 17:54:11 +00:00
2020-05-14 20:40:42 +00:00
jvmMain {
dependencies {
// or use client-java or client-okhttp?
implementation("io.ktor:ktor-client-cio:$ktorVersion")
}
}
jvmTest {
dependencies {
implementation "org.assertj:assertj-core:$assertJVersion"
implementation "org.mockito:mockito-core:$mockitoVersion"
2019-10-02 17:54:11 +00:00
implementation "ch.qos.logback:logback-classic:$logbackVersion"
}
}
jsMain {
dependencies {
implementation("io.ktor:ktor-client-js:$ktorVersion")
api(npm("@js-joda/timezone", "2.3.0"))
}
}
nativeMain {
dependencies {
}
}
linuxMain {
dependencies {
implementation("io.ktor:ktor-client-curl:$ktorVersion")
}
}
mingwMain {
dependencies {
implementation("io.ktor:ktor-client-winhttp:$ktorVersion")
}
}
appleMain {
dependencies {
implementation("io.ktor:ktor-client-darwin:$ktorVersion")
}
}
}
2019-10-02 17:54:11 +00:00
}