2014-10-28 14:46:53 +01:00
|
|
|
import org.apache.tools.ant.taskdefs.condition.Os
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
id "com.github.johnrengelman.shadow" version "1.1.2"
|
|
|
|
}
|
|
|
|
|
2014-10-13 11:06:40 +02:00
|
|
|
apply plugin: 'java'
|
2014-10-13 12:02:43 +02:00
|
|
|
apply plugin: 'eclipse'
|
2014-10-20 03:30:41 +02:00
|
|
|
apply plugin: 'application'
|
2014-08-28 13:32:06 +02:00
|
|
|
|
|
|
|
version = '0.1.0-SNAPSHOT'
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
|
|
|
|
sourceSets.main.resources.srcDirs += 'src/main/java'
|
|
|
|
|
2014-10-30 13:41:24 +01:00
|
|
|
mainClassName = "io.bitsquare.Bitsquare"
|
2014-10-20 03:30:41 +02:00
|
|
|
|
|
|
|
run {
|
|
|
|
if ( project.hasProperty('args') ) {
|
|
|
|
args project.args.split('\\s+')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-08-28 13:32:06 +02:00
|
|
|
repositories {
|
|
|
|
jcenter()
|
2014-09-29 08:32:48 +02:00
|
|
|
maven { url 'http://partnerdemo.artifactoryonline.com/partnerdemo/libs-snapshots-local' }
|
2014-08-28 13:32:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2014-10-03 09:49:22 +02:00
|
|
|
compile 'org.bitcoinj:bitcoinj-core:0.12'
|
2014-11-01 14:27:21 +01:00
|
|
|
compile 'net.tomp2p:tomp2p-all:5.0-Alpha.91276e8-SNAPSHOT'
|
2014-10-05 04:19:18 +02:00
|
|
|
compile 'com.typesafe.akka:akka-actor_2.10:2.3.4'
|
2014-08-28 13:32:06 +02:00
|
|
|
compile 'org.slf4j:slf4j-api:1.7.7'
|
|
|
|
compile 'ch.qos.logback:logback-core:1.1.2'
|
|
|
|
compile 'ch.qos.logback:logback-classic:1.1.2'
|
|
|
|
compile 'com.google.inject:guice:3.0'
|
|
|
|
compile 'com.google.guava:guava:16.0.1'
|
|
|
|
compile 'com.google.code.gson:gson:2.2.4'
|
2014-09-30 23:36:00 +02:00
|
|
|
compile 'org.controlsfx:controlsfx:8.0.6_20'
|
2014-08-28 13:32:06 +02:00
|
|
|
compile 'de.jensd:fontawesomefx:8.0.0'
|
|
|
|
compile 'net.glxn:qrgen:1.3'
|
|
|
|
compile 'com.google.code.findbugs:jsr305:2.0.3'
|
|
|
|
compile 'net.jcip:jcip-annotations:1.0'
|
|
|
|
compile 'org.jetbrains:annotations:13.0'
|
2014-10-06 08:53:49 +02:00
|
|
|
compile 'net.sourceforge.argparse4j:argparse4j:0.4.4'
|
2014-10-30 13:21:07 +01:00
|
|
|
compile 'eu.hansolo.enzo:Enzo:0.1.5'
|
2014-08-28 13:32:06 +02:00
|
|
|
testCompile 'junit:junit:4.11'
|
|
|
|
}
|
2014-08-26 08:27:39 +02:00
|
|
|
|
2014-10-28 14:46:53 +01:00
|
|
|
task packageNative(type:Exec, dependsOn:shadowJar) {
|
|
|
|
if (Os.isFamily(Os.FAMILY_MAC))
|
|
|
|
executable "${project.rootDir}/package/mac.sh"
|
|
|
|
else if (Os.isFamily(Os.FAMILY_UNIX))
|
|
|
|
executable "${project.rootDir}/package/linux.sh"
|
|
|
|
else if (Os.isFamily(Os.FAMILY_WINDOWS))
|
|
|
|
executable "${project.rootDir}/package/windows.bat"
|
|
|
|
else
|
|
|
|
throw new GradleException("Unsupported OS: " + System.properties['os.name'])
|
|
|
|
|
|
|
|
args project.version, shadowJar.archivePath, mainClassName
|
|
|
|
}
|
|
|
|
|
2014-09-29 09:56:30 +02:00
|
|
|
wrapper.gradleVersion = '2.1'
|