2019-04-04 13:14:51 -07:00
|
|
|
plugins {
|
2020-02-29 20:57:33 +01:00
|
|
|
id 'java-library'
|
2019-04-04 13:14:51 -07:00
|
|
|
id 'com.google.protobuf'
|
|
|
|
id 'maven'
|
|
|
|
id 'eclipse'
|
|
|
|
}
|
2018-03-06 21:13:17 +01:00
|
|
|
|
2019-03-01 11:46:48 +01:00
|
|
|
version = '0.16-SNAPSHOT'
|
2018-03-06 21:13:17 +01:00
|
|
|
|
|
|
|
dependencies {
|
2021-01-09 23:41:26 +01:00
|
|
|
api 'org.bouncycastle:bcprov-jdk15to18:1.68'
|
2020-10-17 00:12:51 +02:00
|
|
|
api 'com.google.guava:guava:30.0-android'
|
2020-10-17 00:21:14 +02:00
|
|
|
api 'com.google.protobuf:protobuf-java:3.13.0'
|
2020-10-17 00:29:01 +02:00
|
|
|
api 'com.squareup.okhttp3:okhttp:3.12.12'
|
2020-01-23 01:16:58 +01:00
|
|
|
implementation 'org.slf4j:slf4j-api:1.7.30'
|
2018-03-06 21:13:17 +01:00
|
|
|
implementation 'net.jcip:jcip-annotations:1.0'
|
|
|
|
compileOnly 'org.fusesource.leveldbjni:leveldbjni-all:1.8'
|
2021-02-11 13:01:30 +01:00
|
|
|
testImplementation 'junit:junit:4.13.1'
|
2018-03-06 21:13:17 +01:00
|
|
|
testImplementation 'org.easymock:easymock:3.2'
|
|
|
|
testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.5.2'
|
2020-01-23 01:16:58 +01:00
|
|
|
testImplementation 'org.slf4j:slf4j-jdk14:1.7.30'
|
2018-03-06 21:13:17 +01:00
|
|
|
testImplementation 'com.h2database:h2:1.3.167'
|
|
|
|
testImplementation 'org.fusesource.leveldbjni:leveldbjni-all:1.8'
|
2019-05-06 20:17:52 -04:00
|
|
|
testImplementation 'nl.jqno.equalsverifier:equalsverifier:2.5.2'
|
2020-06-28 16:52:01 -07:00
|
|
|
testImplementation 'org.hamcrest:hamcrest-library:1.3'
|
2018-03-06 21:13:17 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
sourceCompatibility = 1.7
|
2018-10-31 11:12:49 +01:00
|
|
|
compileJava.options.encoding = 'UTF-8'
|
|
|
|
compileTestJava.options.encoding = 'UTF-8'
|
2019-07-26 17:11:08 +02:00
|
|
|
javadoc.options.encoding = 'UTF-8'
|
2018-03-06 21:13:17 +01:00
|
|
|
|
2018-07-27 14:10:10 +02:00
|
|
|
protobuf {
|
2019-02-23 22:52:01 +01:00
|
|
|
protoc {
|
2020-10-17 00:21:14 +02:00
|
|
|
artifact = 'com.google.protobuf:protoc:3.13.0'
|
2019-02-23 22:52:01 +01:00
|
|
|
}
|
2018-07-27 14:10:10 +02:00
|
|
|
generatedFilesBaseDir = new File(projectDir, '/src') // workaround for '$projectDir/src'
|
|
|
|
}
|
|
|
|
|
2018-03-06 21:13:17 +01:00
|
|
|
test {
|
2019-02-25 21:03:30 +01:00
|
|
|
exclude 'org/bitcoinj/core/PeerTest*'
|
|
|
|
exclude 'org/bitcoinj/core/TransactionBroadcastTest*'
|
2019-03-15 12:09:05 +01:00
|
|
|
exclude 'org/bitcoinj/net/discovery/DnsDiscoveryTest*'
|
2019-02-15 11:54:28 -03:00
|
|
|
testLogging {
|
|
|
|
events "failed"
|
|
|
|
exceptionFormat "full"
|
|
|
|
}
|
2018-03-06 21:13:17 +01:00
|
|
|
}
|
|
|
|
|
2019-04-04 15:07:33 -07:00
|
|
|
ext.moduleName = 'org.bitcoinj.core'
|
|
|
|
|
|
|
|
jar {
|
|
|
|
inputs.property("moduleName", moduleName)
|
|
|
|
manifest {
|
|
|
|
attributes 'Automatic-Module-Name': moduleName
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-06 21:13:17 +01:00
|
|
|
task javadocJar(type: Jar, dependsOn: javadoc) {
|
|
|
|
classifier = 'javadoc'
|
|
|
|
from javadoc.destinationDir
|
|
|
|
}
|
|
|
|
|
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
|
|
classifier = 'sources'
|
|
|
|
from sourceSets.main.allSource
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives sourcesJar
|
|
|
|
archives javadocJar
|
|
|
|
}
|