From 3d77cc7296cb03e5f81fd9dd5e3f11dd05e41dbe Mon Sep 17 00:00:00 2001 From: Steve Myers Date: Sun, 19 Oct 2014 18:30:41 -0700 Subject: [PATCH] added application plugin and ability to pass gradle run command line args --- build.gradle | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build.gradle b/build.gradle index c510a3daff..835a992245 100644 --- a/build.gradle +++ b/build.gradle @@ -1,11 +1,20 @@ apply plugin: 'java' apply plugin: 'eclipse' +apply plugin: 'application' version = '0.1.0-SNAPSHOT' sourceCompatibility = 1.8 sourceSets.main.resources.srcDirs += 'src/main/java' +mainClassName = "io.bitsquare.BitSquare" + +run { + if ( project.hasProperty('args') ) { + args project.args.split('\\s+') + } +} + repositories { jcenter() maven { url 'http://partnerdemo.artifactoryonline.com/partnerdemo/libs-snapshots-local' }