2019-04-04 13:14:51 -07:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
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 {
|
2018-10-23 16:16:08 +02:00
|
|
|
compile 'org.bouncycastle:bcprov-jdk15on:1.60'
|
2019-04-04 13:40:10 -07:00
|
|
|
implementation 'com.google.guava:guava:27.1-android'
|
2019-02-14 23:36:05 +01:00
|
|
|
compile 'com.google.protobuf:protobuf-java:3.6.1'
|
2019-02-14 23:37:00 +01:00
|
|
|
implementation 'com.squareup.okhttp3:okhttp:3.12.1'
|
2018-03-06 21:13:17 +01:00
|
|
|
implementation 'org.slf4j:slf4j-api:1.7.25'
|
|
|
|
implementation 'net.jcip:jcip-annotations:1.0'
|
|
|
|
compileOnly 'org.fusesource.leveldbjni:leveldbjni-all:1.8'
|
|
|
|
testImplementation 'junit:junit:4.12'
|
|
|
|
testImplementation 'org.easymock:easymock:3.2'
|
|
|
|
testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.5.2'
|
|
|
|
testImplementation 'org.slf4j:slf4j-jdk14:1.7.25'
|
|
|
|
testImplementation 'com.h2database:h2:1.3.167'
|
|
|
|
testImplementation 'org.fusesource.leveldbjni:leveldbjni-all:1.8'
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceCompatibility = 1.7
|
2018-10-31 11:12:49 +01:00
|
|
|
compileJava.options.encoding = 'UTF-8'
|
|
|
|
compileTestJava.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 {
|
|
|
|
artifact = 'com.google.protobuf:protoc:3.6.1'
|
|
|
|
}
|
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*'
|
2018-03-06 21:13:17 +01:00
|
|
|
exclude 'org/bitcoinj/net/NetworkAbstractionTests*'
|
2019-03-15 12:09:05 +01:00
|
|
|
exclude 'org/bitcoinj/net/discovery/DnsDiscoveryTest*'
|
2019-02-25 21:03:30 +01:00
|
|
|
exclude 'org/bitcoinj/protocols/channels/ChannelConnectionTest*'
|
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
|
|
|
|
}
|