Skip to content

Commit 5d63420

Browse files
committed
feat: Add task to run each example file
1 parent 74724b0 commit 5d63420

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ bdk.kt
44
libbdkffi.dylib
55
/.idea
66
.DS_Store
7+
/examples/data/

examples/build.gradle.kts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
22

33
plugins {
44
kotlin("jvm") version "2.1.10"
5+
application
56
}
67

78
group = "org.bitcoindevkit"
@@ -32,3 +33,17 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
3233
jvmTarget.set(JvmTarget.JVM_11)
3334
}
3435
}
36+
37+
tasks.register<JavaExec>("WalletSetupBip32") {
38+
group = "application"
39+
description = "Runs the main function in the WalletSetupBip32 example"
40+
mainClass.set("org.bitcoindevkit.WalletSetupBip32Kt")
41+
classpath = sourceSets["main"].runtimeClasspath
42+
}
43+
44+
tasks.register<JavaExec>("MultisigTransaction") {
45+
group = "application"
46+
description = "Runs the main function in the MultisigTransaction example"
47+
mainClass.set("org.bitcoindevkit.MultisigTransactionKt")
48+
classpath = sourceSets["main"].runtimeClasspath
49+
}

0 commit comments

Comments
 (0)