2018-03-06 21:13:17 +01:00
|
|
|
apply plugin: 'java'
|
2019-02-14 22:47:54 +01:00
|
|
|
apply plugin: 'eclipse'
|
|
|
|
|
|
|
|
eclipse.project.name = 'bitcoinj-tools'
|
2018-03-06 21:13:17 +01:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation project(':core')
|
2019-02-14 23:20:55 +01:00
|
|
|
implementation 'com.google.guava:guava:27.0.1-android'
|
2018-03-06 21:13:17 +01:00
|
|
|
implementation 'net.sf.jopt-simple:jopt-simple:4.3'
|
|
|
|
implementation 'org.slf4j:slf4j-jdk14:1.7.25'
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
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
|
|
|
|
|
|
|
task wallet_tool(type: JavaExec) {
|
|
|
|
description = 'Print and manipulate wallets.'
|
|
|
|
main = 'org.bitcoinj.tools.WalletTool'
|
|
|
|
if (project.hasProperty('appArgs') && appArgs.length() > 0)
|
|
|
|
args = Arrays.asList(appArgs.split("\\s+"))
|
|
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
|
|
}
|
|
|
|
|
|
|
|
task build_checkpoints(type: JavaExec) {
|
|
|
|
description = 'Create checkpoint files to use with CheckpointManager.'
|
|
|
|
main = 'org.bitcoinj.tools.BuildCheckpoints'
|
|
|
|
if (project.hasProperty('appArgs') && appArgs.length() > 0)
|
|
|
|
args = Arrays.asList(appArgs.split("\\s+"))
|
|
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
|
|
}
|