BankingClient/FinTs4jBankingClient/build.gradle.kts

118 lines
2.4 KiB
Plaintext
Raw Normal View History

2024-08-17 01:29:17 +00:00
@file:OptIn(ExperimentalWasmDsl::class)
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
plugins {
kotlin("multiplatform")
}
kotlin {
2024-09-12 01:27:54 +00:00
jvmToolchain(11)
2024-08-17 01:29:17 +00:00
jvm {
withJava()
testRuns["test"].executionTask.configure {
useJUnitPlatform()
testLogging {
showExceptions = true
showStandardStreams = true
events("passed", "skipped", "failed")
// exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
}
}
}
js {
moduleName = "fints4k-banking-client"
binaries.executable()
browser {
testTask {
useKarma {
// useChromeHeadless()
useFirefoxHeadless()
}
}
}
nodejs {
testTask {
useMocha {
timeout = "20s" // Mocha times out after 2 s, which is too short for bufferExceeded() test
}
}
}
}
2024-08-26 00:18:12 +00:00
// wasmJs() // ktor is not available for wasmJs yet
linuxX64()
mingwX64()
2024-08-26 00:18:12 +00:00
iosX64()
iosArm64()
iosSimulatorArm64()
macosX64()
macosArm64()
watchosArm64()
watchosSimulatorArm64()
tvosArm64()
tvosSimulatorArm64()
2024-08-17 01:29:17 +00:00
applyDefaultHierarchyTemplate()
val coroutinesVersion: String by project
val kotlinxDateTimeVersion: String by project
2024-08-17 01:29:17 +00:00
sourceSets {
commonMain {
dependencies {
api(project(":BankingClient"))
implementation("net.codinux.banking:fints4k:1.0.0-Alpha-15")
2024-08-17 01:29:17 +00:00
api("org.jetbrains.kotlinx:kotlinx-datetime:$kotlinxDateTimeVersion")
2024-08-17 01:29:17 +00:00
}
}
commonTest {
dependencies {
implementation(kotlin("test"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesVersion")
}
}
jvmMain {
dependencies {
2024-08-17 01:29:17 +00:00
}
}
jvmTest {
dependencies {
implementation(kotlin("test"))
}
}
jsMain {
dependencies {
}
}
jsTest { }
nativeMain { }
nativeTest { }
2024-08-17 01:29:17 +00:00
}
}
ext["customArtifactId"] = "fints4k-banking-client"
2024-08-17 01:29:17 +00:00
apply(from = "../gradle/scripts/publish-codinux-repo.gradle.kts")