2021-10-14 22:05:21 -07:00
|
|
|
plugins {
|
2021-10-18 13:53:05 -07:00
|
|
|
id 'org.jetbrains.kotlin.jvm'
|
|
|
|
id 'java-library'
|
|
|
|
id 'maven-publish'
|
2021-11-05 10:33:37 -07:00
|
|
|
id 'signing'
|
2021-10-14 22:05:21 -07:00
|
|
|
}
|
|
|
|
|
2021-10-17 13:56:28 -07:00
|
|
|
java {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
2021-11-05 10:33:37 -07:00
|
|
|
|
|
|
|
withJavadocJar()
|
|
|
|
withSourcesJar()
|
2021-10-17 13:56:28 -07:00
|
|
|
}
|
|
|
|
|
2021-10-14 22:05:21 -07:00
|
|
|
test {
|
2021-10-18 13:53:05 -07:00
|
|
|
testLogging {
|
|
|
|
events "PASSED", "SKIPPED", "FAILED", "STANDARD_OUT", "STANDARD_ERROR"
|
|
|
|
}
|
2021-10-14 22:05:21 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-10-18 13:53:05 -07:00
|
|
|
implementation platform('org.jetbrains.kotlin:kotlin-bom')
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
|
|
implementation "net.java.dev.jna:jna:5.8.0"
|
|
|
|
api "org.slf4j:slf4j-api:1.7.30"
|
2021-11-08 17:41:06 -08:00
|
|
|
testImplementation "junit:junit:4.13.2"
|
|
|
|
testImplementation "ch.qos.logback:logback-classic:1.2.3"
|
|
|
|
testImplementation "ch.qos.logback:logback-core:1.2.3"
|
2021-10-14 22:05:21 -07:00
|
|
|
}
|
|
|
|
|
2021-11-05 10:33:37 -07:00
|
|
|
afterEvaluate {
|
|
|
|
publishing {
|
|
|
|
publications {
|
2021-11-06 00:22:45 +05:30
|
|
|
|
2021-11-05 10:33:37 -07:00
|
|
|
release(MavenPublication) {
|
2021-12-18 10:45:08 -08:00
|
|
|
from components.java
|
|
|
|
|
2021-11-05 10:33:37 -07:00
|
|
|
groupId = 'org.bitcoindevkit'
|
|
|
|
artifactId = 'bdk-jvm'
|
2022-02-03 20:02:28 -06:00
|
|
|
version = '0.3.2'
|
2021-10-14 22:05:21 -07:00
|
|
|
|
2021-11-05 10:33:37 -07:00
|
|
|
pom {
|
|
|
|
name = 'bdk-jvm'
|
|
|
|
description = 'Bitcoin Dev Kit Kotlin language bindings.'
|
|
|
|
url = "https://bitcoindevkit.org"
|
|
|
|
licenses {
|
|
|
|
license {
|
|
|
|
name = "APACHE"
|
|
|
|
url = "https://github.com/bitcoindevkit/bdk/blob/master/LICENSE-APACHE"
|
|
|
|
}
|
|
|
|
license {
|
|
|
|
name = "MIT"
|
|
|
|
url = "https://github.com/bitcoindevkit/bdk/blob/master/LICENSE-MIT"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
developers {
|
|
|
|
developer {
|
|
|
|
id = 'notmandatory'
|
|
|
|
name = 'Steve Myers'
|
|
|
|
email = 'notmandatory@noreply.github.org'
|
|
|
|
}
|
|
|
|
developer {
|
|
|
|
id = 'artfuldev'
|
|
|
|
name = 'Sudarsan Balaji'
|
2021-11-06 05:06:50 +05:30
|
|
|
email = 'sudarsan.balaji@artfuldev.com'
|
2021-11-05 10:33:37 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
scm {
|
|
|
|
connection = 'scm:git:github.com/bitcoindevkit/bdk-ffi.git'
|
|
|
|
developerConnection = 'scm:git:ssh://github.com/bitcoindevkit/bdk-ffi.git'
|
|
|
|
url = 'https://github.com/bitcoindevkit/bdk-ffi/tree/master'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-10-18 13:53:05 -07:00
|
|
|
}
|
2021-10-14 22:05:21 -07:00
|
|
|
}
|
|
|
|
}
|
2021-11-05 10:33:37 -07:00
|
|
|
|
|
|
|
signing {
|
|
|
|
useGpgCmd()
|
|
|
|
sign publishing.publications
|
|
|
|
}
|