BankingClient/multiplatform-utils/build.gradle

117 lines
1.9 KiB
Groovy
Raw Normal View History

2020-07-11 10:03:28 +00:00
plugins {
id "org.jetbrains.kotlin.multiplatform"
id "maven-publish"
}
group = "net.codinux.utils"
2020-07-11 10:03:28 +00:00
kotlin {
// Enable the default target hierarchy:
targetHierarchy.default()
2020-07-11 10:03:28 +00:00
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-11 10:03:28 +00:00
}
}
js(IR) {
// binaries.executable()
browser {
testTask {
useKarma {
useChromeHeadless()
useFirefoxHeadless()
}
}
}
nodejs()
}
linuxX64()
mingwX64()
ios {
binaries {
framework {
baseName = "MultiplatformUtils"
2020-07-11 10:03:28 +00:00
}
}
}
iosSimulatorArm64()
macosX64()
macosArm64()
watchos()
watchosSimulatorArm64()
tvos()
tvosSimulatorArm64()
2020-07-11 10:03:28 +00:00
sourceSets {
commonMain {
dependencies {
2023-07-06 11:49:55 +00:00
api "org.jetbrains.kotlinx:kotlinx-datetime:$kotlinxDateTimeVersion"
2020-07-11 10:03:28 +00:00
}
}
commonTest {
dependencies {
2023-07-06 14:52:37 +00:00
implementation kotlin("test")
2020-07-11 10:03:28 +00:00
}
}
jvmMain {
dependencies {
}
}
jvmTest {
dependencies {
implementation "org.slf4j:slf4j-simple:$slf4jVersion"
}
}
jsMain {
dependencies {
implementation npm("@js-joda/timezone", "2.3.0")
}
}
2020-07-11 10:03:28 +00:00
2023-07-06 11:49:55 +00:00
linuxX64Main {
dependencies {
2024-08-19 09:10:41 +00:00
2023-07-06 11:49:55 +00:00
}
}
mingwX64Main {
dependencies {
2024-08-19 09:10:41 +00:00
2023-07-06 11:49:55 +00:00
}
}
2023-07-06 14:52:37 +00:00
appleMain {
dependencies {
}
}
2020-07-11 10:03:28 +00:00
}
}