2024-08-17 01:29:17 +00:00
|
|
|
@file:OptIn(ExperimentalWasmDsl::class)
|
|
|
|
|
|
|
|
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
kotlin("multiplatform")
|
2024-08-22 01:46:47 +00:00
|
|
|
|
|
|
|
id("maven-publish")
|
2024-08-17 01:29:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
jvmToolchain(8)
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-08-17 03:12:19 +00:00
|
|
|
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-17 01:29:17 +00:00
|
|
|
// wasmJs()
|
2024-08-17 03:12:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
linuxX64()
|
|
|
|
mingwX64()
|
|
|
|
|
|
|
|
iosArm64()
|
|
|
|
iosSimulatorArm64()
|
|
|
|
macosX64()
|
|
|
|
macosArm64()
|
|
|
|
watchosArm64()
|
|
|
|
watchosSimulatorArm64()
|
|
|
|
tvosArm64()
|
|
|
|
tvosSimulatorArm64()
|
2024-08-17 01:29:17 +00:00
|
|
|
|
|
|
|
applyDefaultHierarchyTemplate()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val coroutinesVersion: String by project
|
2024-08-17 03:12:19 +00:00
|
|
|
val kotlinxDateTimeVersion: String by project
|
2024-08-17 01:29:17 +00:00
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
commonMain {
|
|
|
|
dependencies {
|
|
|
|
api(project(":BankingClient"))
|
|
|
|
|
2024-08-23 14:19:46 +00:00
|
|
|
api("net.codinux.banking:fints4k:1.0.0-Alpha-12-SNAPSHOT")
|
2024-08-17 01:29:17 +00:00
|
|
|
|
2024-08-17 03:12:19 +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 03:12:19 +00:00
|
|
|
|
2024-08-17 01:29:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
jvmTest {
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("test"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-08-17 03:12:19 +00:00
|
|
|
jsMain {
|
|
|
|
dependencies {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
jsTest { }
|
|
|
|
|
|
|
|
nativeMain { }
|
|
|
|
nativeTest { }
|
2024-08-17 01:29:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-08-22 01:46:47 +00:00
|
|
|
//ext["customArtifactId"] = "fints4k-banking-client"
|
|
|
|
//
|
|
|
|
//apply(from = "../gradle/scripts/publish-codinux.gradle.kts")
|
|
|
|
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
name = "codinux"
|
|
|
|
url = uri("https://maven.dankito.net/api/packages/codinux/maven")
|
2024-08-17 01:29:17 +00:00
|
|
|
|
2024-08-22 01:46:47 +00:00
|
|
|
credentials(PasswordCredentials::class.java) {
|
|
|
|
username = project.property("codinuxRegistryWriterUsername") as String
|
|
|
|
password = project.property("codinuxRegistryWriterPassword") as String
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|