fints4k/fints4k/build.gradle

125 lines
3.4 KiB
Groovy
Raw Normal View History

plugins {
id "org.jetbrains.kotlin.multiplatform"
2020-06-14 18:30:34 +00:00
id "maven-publish"
}
kotlin {
jvm {
compilations.all {
kotlinOptions.jvmTarget = '1.8'
}
withJava()
testRuns["test"].executionTask.configure {
useJUnitPlatform()
2020-07-02 21:14:14 +00:00
}
}
// js(BOTH) {
// browser {
// commonWebpackConfig {
// cssSupport.enabled = true
// }
// }
// }
ios {
binaries {
framework {
baseName = "fints4k"
}
}
}
// def hostOs = System.getProperty("os.name")
// def isMingwX64 = hostOs.startsWith("Windows")
// def nativeTarget
// if (hostOs == "Mac OS X") nativeTarget = macosX64('native') { binaries.executable() }
// else if (hostOs == "Linux") nativeTarget = linuxX64("native") { binaries.executable() }
// else if (isMingwX64) nativeTarget = mingwX64("native") { binaries.executable() }
// else throw new GradleException("Host OS is not supported in Kotlin/Native.")
sourceSets {
commonMain {
dependencies {
2020-07-11 10:03:28 +00:00
api project(":common")
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion"
implementation "io.ktor:ktor-client-core:$ktorVersion"
}
}
commonTest {
dependencies {
implementation kotlin("test")
implementation "ch.tutteli.atrium:atrium-fluent-en_GB-common:$atriumVersion"
}
}
2019-10-02 17:54:11 +00:00
2020-05-14 20:40:42 +00:00
jvmMain {
dependencies {
implementation "io.ktor:ktor-client-okhttp:$ktorVersion"
2019-10-02 17:54:11 +00:00
implementation "org.slf4j:slf4j-api:$slf4jVersion"
}
}
jvmTest {
dependencies {
2020-04-23 22:50:14 +00:00
implementation "org.assertj:assertj-core:$assertJVersion"
implementation "org.mockito:mockito-core:$mockitoVersion"
2019-10-02 17:54:11 +00:00
implementation "ch.tutteli.atrium:atrium-fluent-en_GB:$atriumVersion"
// implementation project(":BankingUiCommon")
// implementation project(":BankFinder")
// implementation project(":fints4kBankingClient")
2019-10-02 17:54:11 +00:00
implementation "org.apache.commons:commons-csv:1.8"
2019-10-02 17:54:11 +00:00
implementation "org.slf4j:slf4j-simple:$slf4jVersion"
}
}
// jsMain {
// dependencies {
// implementation "io.ktor:ktor-client-js:$ktorVersion"
// }
// }
//
// jsTest {
//
// }
2020-07-02 21:14:14 +00:00
iosMain {
dependencies {
// ktor Native needs "-native-mt" coroutines version. Export it so that referencing applications don't need to import it on their own
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion-native-mt")
2020-07-02 21:14:14 +00:00
implementation "io.ktor:ktor-client-ios:$ktorVersion"
}
}
nativeMain {
dependencies {
// ktor Native needs "-native-mt" coroutines version. Export it so that referencing applications don't need to import it on their own
api"org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion-native-mt"
// requires cURL to be installed on your system
implementation "io.ktor:ktor-client-curl:$ktorVersion"
}
}
}
2019-10-02 17:54:11 +00:00
}