bitcoinj/tools/build.gradle
Sean Gilligan 0aef9836db build.gradle: Add 'application' plugin to tools subproject.
* Enable and configure Gradle application plugin
* Add wallet-tool instructions in project README.md
2020-03-12 00:25:19 +01:00

28 lines
793 B
Groovy

plugins {
id 'java'
id 'application'
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'
mainClassName = "org.bitcoinj.tools.WalletTool"
applicationName = "wallet-tool"
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
}