2022-04-21 05:16:24 -07:00
|
|
|
plugins {
|
2022-04-25 05:07:50 -07:00
|
|
|
id("org.jetbrains.kotlin.multiplatform")
|
2022-04-21 05:16:24 -07:00
|
|
|
id("java-library")
|
2022-04-21 07:16:42 -07:00
|
|
|
alias(libs.plugins.dokka)
|
|
|
|
alias(libs.plugins.publish)
|
2022-04-26 05:08:28 -07:00
|
|
|
id("bip39.kotlin-multiplatform-conventions")
|
|
|
|
id("bip39.dependency-conventions")
|
2022-04-21 05:16:24 -07:00
|
|
|
}
|
|
|
|
|
2022-06-14 04:47:48 -07:00
|
|
|
project.group = project.property("GROUP").toString()
|
|
|
|
|
|
|
|
val libraryVersion = project.property("VERSION_NAME").toString()
|
|
|
|
project.version = if (project.property("IS_SNAPSHOT").toString().toBoolean()) {
|
|
|
|
"$version-SNAPSHOT"
|
|
|
|
} else {
|
|
|
|
version
|
|
|
|
}
|
2022-04-21 05:16:24 -07:00
|
|
|
|
2022-04-21 07:36:51 -07:00
|
|
|
kotlin {
|
2022-04-26 05:08:28 -07:00
|
|
|
jvm {
|
|
|
|
testRuns["test"].executionTask.configure {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
|
|
|
}
|
2022-04-21 07:36:51 -07:00
|
|
|
sourceSets {
|
|
|
|
val commonMain by getting {
|
|
|
|
dependencies {
|
|
|
|
}
|
2022-04-21 07:37:58 -07:00
|
|
|
}
|
2022-04-21 07:36:51 -07:00
|
|
|
val commonTest by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("test"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
val jvmMain by getting {
|
|
|
|
dependencies {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
val jvmTest by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("test"))
|
|
|
|
implementation(libs.kotest.runner)
|
|
|
|
implementation(libs.kotest.assertion)
|
|
|
|
implementation(libs.kotest.property)
|
|
|
|
implementation(libs.moshi.core)
|
|
|
|
implementation(libs.moshi.kotlin)
|
|
|
|
}
|
2022-04-21 07:37:58 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|