bitcoinj/tools/build.gradle
Sean Gilligan e4c6b98536 Make Guava an api dependency using java-library
Use the Gradle java-library plugin to make Guava an `api`
dependency since Guava types are used in the bitcoinj public API.

This allows us to remove explicit dependencies on
Guava in the other modules.
2020-02-29 15:28:09 -08:00

31 lines
987 B
Groovy

plugins {
id 'java'
id 'eclipse'
}
dependencies {
implementation project(':bitcoinj-core')
implementation 'net.sf.jopt-simple:jopt-simple:5.0.4'
implementation 'org.slf4j:slf4j-jdk14:1.7.30'
}
sourceCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
javadoc.options.encoding = 'UTF-8'
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
}