kotlin-bip39/lib/build.gradle.kts

45 lines
1018 B
Plaintext
Raw Normal View History

2022-04-21 05:16:24 -07:00
plugins {
2022-04-21 07:16:42 -07:00
alias(libs.plugins.kotlin)
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-21 05:16:24 -07:00
}
group = project.property("GROUP").toString()
version = project.property("VERSION_NAME").toString()
2022-04-21 07:37:58 -07:00
sourceSets {
main {
java {
setSrcDirs(listOf("src/jvmMain/kotlin"))
}
}
test {
java {
setSrcDirs(listOf("src/jvmTest/kotlin", "src/jvmTest/resources"))
}
}
}
2022-04-21 05:16:24 -07:00
kotlin {
jvmToolchain {
// This should be set lower for Android, although there's no compatible JVM for Apple Silicon
(this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(11))
}
}
dependencies {
// Tests
testImplementation(kotlin("test"))
2022-04-21 07:16:42 -07:00
testImplementation(libs.kotest.runner)
testImplementation(libs.kotest.assertion)
testImplementation(libs.kotest.property)
testImplementation(libs.moshi.core)
testImplementation(libs.moshi.kotlin)
2022-04-21 05:16:24 -07:00
}
tasks.withType<Test> {
useJUnitPlatform()
}