2022-09-08 09:33:36 -04:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
|
|
|
plugins {
|
2022-09-13 12:02:58 -04:00
|
|
|
kotlin("jvm") version "1.7.10"
|
2022-09-08 09:33:36 -04:00
|
|
|
|
|
|
|
// API docs
|
|
|
|
id("org.jetbrains.dokka") version "1.7.10"
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
testImplementation(kotlin("test"))
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<org.jetbrains.dokka.gradle.DokkaTask>().configureEach {
|
|
|
|
dokkaSourceSets {
|
|
|
|
named("main") {
|
|
|
|
moduleName.set("bdk-android")
|
2022-09-13 12:02:58 -04:00
|
|
|
moduleVersion.set("0.9.0")
|
2022-09-08 09:33:36 -04:00
|
|
|
includes.from("Module.md")
|
2022-09-08 10:41:51 -04:00
|
|
|
samples.from("src/main/kotlin/org/bitcoindevkit/Samples.kt")
|
2022-09-08 09:33:36 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|