diff --git a/assets/build.gradle b/assets/build.gradle
deleted file mode 100644
index 28f6fc9940c..00000000000
--- a/assets/build.gradle
+++ /dev/null
@@ -1,38 +0,0 @@
-plugins {
- id 'java'
- id 'maven'
-}
-
-group 'network.bisq'
-version '-SNAPSHOT'
-
-sourceCompatibility = 1.10
-
-tasks.withType(JavaCompile) {
- options.encoding = 'UTF-8'
-}
-
-javadoc {
- options.author = true
- options.addStringOption('Xdoclint:none', '-quiet')
-}
-
-task javadocJar(type: Jar, dependsOn: javadoc) {
- classifier = 'javadoc'
- from javadoc.destinationDir
-}
-
-artifacts {
- archives javadocJar
-}
-
-repositories {
- jcenter()
- maven { url 'https://jitpack.io' }
-}
-
-dependencies {
- compile project(':common')
- compile 'commons-codec:commons-codec:1.9'
- testCompile 'junit:junit:4.12'
-}
diff --git a/assets/src/main/java/bisq/asset/PrintTool.java b/assets/src/main/java/bisq/asset/PrintTool.java
index 48cdb2b02b6..cc17d60660f 100644
--- a/assets/src/main/java/bisq/asset/PrintTool.java
+++ b/assets/src/main/java/bisq/asset/PrintTool.java
@@ -17,8 +17,6 @@
package bisq.asset;
-import bisq.common.util.Tuple2;
-
import java.util.Comparator;
public class PrintTool {
@@ -31,14 +29,24 @@ public static void main(String[] args) {
.sorted(Comparator.comparing(o -> o.getName().toLowerCase()))
.filter(e -> !e.getTickerSymbol().equals("BSQ")) // BSQ is not out yet...
.filter(e -> !e.getTickerSymbol().equals("BTC"))
- .map(e -> new Tuple2(e.getName(), e.getTickerSymbol())) // We want to get rid of duplicated entries for regtest/testnet...
+ .map(e -> new Pair(e.getName(), e.getTickerSymbol())) // We want to get rid of duplicated entries for regtest/testnet...
.distinct()
.forEach(e -> sb.append("
“")
- .append(e.second)
+ .append(e.right)
.append("”, “")
- .append(e.first)
+ .append(e.left)
.append("”")
.append("\n"));
System.out.println(sb.toString());
}
+
+ private static class Pair {
+ String left;
+ String right;
+
+ Pair(String left, String right) {
+ this.left = left;
+ this.right = right;
+ }
+ }
}
diff --git a/build.gradle b/build.gradle
index caeb306050d..4c58f7fcfec 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,3 +1,319 @@
-plugins {
- id 'java-base'
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.5'
+ classpath 'com.google.gradle:osdetector-gradle-plugin:1.6.0'
+ classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.4'
+ classpath files('gradle/witness/gradle-witness.jar')
+ classpath 'org.springframework.boot:spring-boot-gradle-plugin:1.5.10.RELEASE'
+ }
+}
+
+
+configure(subprojects) {
+ apply plugin: 'java'
+ apply plugin: 'com.google.osdetector'
+
+ sourceCompatibility = 1.10
+
+ ext {
+ bcVersion = '1.56'
+ codecVersion = '1.9'
+ easyVersion = '4.0.1'
+ jmockitVersion = '1.42'
+ joptVersion = '5.0.3'
+ langVersion = '3.4'
+ libdohjVersion = 'd4ace7bc'
+ lombokVersion = '1.18.2'
+ mockitoVersion = '2.21.0'
+ powermockVersion = '2.0.0-beta.5'
+ protobufVersion = '3.5.1'
+ sparkVersion = '2.5.2'
+ springVersion = '4.3.6.RELEASE'
+
+ os = osdetector.os == 'osx' ? 'mac' : osdetector.os == 'windows' ? 'win' : osdetector.os
+ }
+
+ repositories {
+ jcenter()
+ maven { url 'https://jitpack.io' }
+ maven { url 'https://raw.githubusercontent.com/JesusMcCloud/tor-binary/master/release/' }
+ }
+
+ dependencies {
+ testCompile 'junit:junit:4.12'
+ }
+
+ tasks.withType(JavaCompile) {
+ options.encoding = 'UTF-8'
+ }
+}
+
+
+configure([project(':desktop'),
+ project(':monitor'),
+ project(':relay'),
+ project(':seednode'),
+ project(':statsnode')]) {
+ apply plugin: 'application'
+
+ build.dependsOn installDist
+ installDist.destinationDir = file('build/app')
+ distZip.enabled = false
+}
+
+
+configure(project(':assets')) {
+ dependencies {
+ compile("network.bisq.libdohj:libdohj-core:$libdohjVersion") {
+ exclude(module: 'protobuf-java')
+ }
+ compile "commons-codec:commons-codec:$codecVersion"
+ compile "org.apache.commons:commons-lang3:$langVersion"
+ compile "org.bouncycastle:bcpg-jdk15on:$bcVersion"
+ }
+}
+
+
+configure(project(':common')) {
+ apply plugin: 'com.google.protobuf'
+
+ sourceSets.main.java.srcDir "$buildDir/generated/source/proto/main/java"
+
+ protobuf {
+ protoc {
+ artifact = "com.google.protobuf:protoc:$protobufVersion"
+ }
+ }
+
+ dependencies {
+ compile "org.openjfx:javafx-base:11:$os"
+ compile "org.openjfx:javafx-graphics:11:$os"
+ compile "com.google.protobuf:protobuf-java:$protobufVersion"
+ compile 'com.google.code.gson:gson:2.7'
+ compile('com.googlecode.json-simple:json-simple:1.1.1') {
+ exclude(module: 'junit')
+ }
+ compile "org.springframework:spring-core:$springVersion"
+ compile 'org.slf4j:slf4j-api:1.7.22'
+ compile 'ch.qos.logback:logback-core:1.1.10'
+ compile 'ch.qos.logback:logback-classic:1.1.10'
+ compile 'com.google.code.findbugs:jsr305:3.0.1'
+ compile 'com.google.guava:guava:20.0'
+ compile('com.google.inject:guice:4.1.0') {
+ exclude(module: 'guava')
+ }
+ compile("network.bisq.libdohj:libdohj-core:$libdohjVersion") {
+ exclude(module: 'jsr305')
+ exclude(module: 'slf4j-api')
+ exclude(module: 'guava')
+ exclude(module: 'protobuf-java')
+ }
+ compile 'org.jetbrains:annotations:13.0'
+ runtime "org.bouncycastle:bcprov-jdk15on:$bcVersion"
+ compile "org.bouncycastle:bcpg-jdk15on:$bcVersion"
+ compile 'commons-io:commons-io:2.4'
+ compile "org.apache.commons:commons-lang3:$langVersion"
+ compileOnly "org.projectlombok:lombok:$lombokVersion"
+ annotationProcessor "org.projectlombok:lombok:$lombokVersion"
+ }
+}
+
+
+configure(project(':p2p')) {
+ dependencies {
+ compile project(':common')
+ compile('com.github.JesusMcCloud.netlayer:tor.native:0.4.2') {
+ exclude(module: 'slf4j-api')
+ }
+ compile('org.apache.httpcomponents:httpclient:4.5.3') {
+ exclude(module: 'commons-logging')
+ }
+ compile "net.sf.jopt-simple:jopt-simple:$joptVersion"
+ compile 'org.fxmisc.easybind:easybind:1.0.3'
+ compileOnly "org.projectlombok:lombok:$lombokVersion"
+ annotationProcessor "org.projectlombok:lombok:$lombokVersion"
+ testCompile 'org.jmockit:jmockit:1.30' // must not use current $jmockitVersion
+ testCompileOnly "org.projectlombok:lombok:$lombokVersion"
+ testAnnotationProcessor "org.projectlombok:lombok:$lombokVersion"
+ }
+}
+
+
+configure(project(':core')) {
+ dependencies {
+ compile project(':assets')
+ compile project(':p2p')
+ compile "net.sf.jopt-simple:jopt-simple:$joptVersion"
+ compile('network.bisq.btcd-cli4j:btcd-cli4j-core:3864e1c4') {
+ exclude(module: 'slf4j-api')
+ exclude(module: 'httpclient')
+ exclude(module: 'commons-lang3')
+ exclude(module: 'jackson-core')
+ exclude(module: 'jackson-annotations')
+ exclude(module: 'jackson-databind')
+ }
+ compile('network.bisq.btcd-cli4j:btcd-cli4j-daemon:3864e1c4') {
+ exclude(module: 'slf4j-api')
+ exclude(module: 'httpclient')
+ exclude(module: 'commons-lang3')
+ exclude(module: 'jackson-core')
+ exclude(module: 'jackson-annotations')
+ exclude(module: 'jackson-databind')
+ }
+ compile 'com.fasterxml.jackson.core:jackson-core:2.8.10'
+ compile 'com.fasterxml.jackson.core:jackson-annotations:2.8.10'
+ compile('com.fasterxml.jackson.core:jackson-databind:2.8.10') {
+ exclude(module: 'jackson-annotations')
+ }
+
+ compileOnly "org.projectlombok:lombok:$lombokVersion"
+ annotationProcessor "org.projectlombok:lombok:$lombokVersion"
+
+ testCompile "org.jmockit:jmockit:$jmockitVersion"
+ testCompile("org.mockito:mockito-core:$mockitoVersion") {
+ exclude(module: 'objenesis')
+ }
+ testCompile "org.powermock:powermock-module-junit4:$powermockVersion"
+ testCompile "org.powermock:powermock-api-mockito2:$powermockVersion"
+ testCompile "org.springframework:spring-test:$springVersion"
+ testCompile "com.natpryce:make-it-easy:$easyVersion"
+ testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
+ testCompileOnly "org.projectlombok:lombok:$lombokVersion"
+ testAnnotationProcessor "org.projectlombok:lombok:$lombokVersion"
+ }
+
+ test {
+ systemProperty 'jdk.attach.allowAttachSelf', true
+
+ def jmockit = configurations.testCompile.files.find { it.name.contains("jmockit") }.absolutePath
+ jvmArgs "-javaagent:$jmockit"
+ }
+}
+
+
+configure(project(':desktop')) {
+ apply plugin: 'com.github.johnrengelman.shadow'
+ apply plugin: 'witness'
+ apply from: '../gradle/witness/gradle-witness.gradle'
+
+ version = '0.8.0-SNAPSHOT'
+
+ mainClassName = 'bisq.desktop.app.BisqAppMain'
+
+ tasks.withType(AbstractArchiveTask) {
+ preserveFileTimestamps = false
+ reproducibleFileOrder = true
+ }
+
+ sourceSets.main.resources.srcDirs += ['src/main/java'] // to copy fxml and css files
+
+ dependencies {
+ compile project(':p2p')
+ compile project(':core')
+ compile project(':common')
+ compile 'org.controlsfx:controlsfx:8.0.6_20'
+ compile 'org.reactfx:reactfx:2.0-M3'
+ compile 'net.glxn:qrgen:1.3'
+ compile 'de.jensd:fontawesomefx:8.0.0'
+ compile 'de.jensd:fontawesomefx-commons:9.1.2'
+ compile 'de.jensd:fontawesomefx-materialdesignfont:2.0.26-9.1.2'
+ compile 'com.googlecode.jcsv:jcsv:1.4.0'
+ compile 'com.github.sarxos:webcam-capture:0.3.12'
+ compile "org.openjfx:javafx-controls:11:$os"
+ compile "org.openjfx:javafx-fxml:11:$os"
+ compile "org.openjfx:javafx-swing:11:$os"
+
+ compileOnly "org.projectlombok:lombok:$lombokVersion"
+ annotationProcessor "org.projectlombok:lombok:$lombokVersion"
+
+ testCompile "org.jmockit:jmockit:$jmockitVersion"
+ testCompile("org.mockito:mockito-core:$mockitoVersion") {
+ exclude(module: 'objenesis')
+ }
+ testCompile "org.powermock:powermock-module-junit4:$powermockVersion"
+ testCompile "org.powermock:powermock-api-mockito2:$powermockVersion"
+ testCompile "org.springframework:spring-test:$springVersion"
+ testCompile "com.natpryce:make-it-easy:$easyVersion"
+ testCompileOnly "org.projectlombok:lombok:$lombokVersion"
+ testAnnotationProcessor "org.projectlombok:lombok:$lombokVersion"
+ }
+}
+
+
+configure(project(':monitor')) {
+ mainClassName = 'bisq.monitor.MonitorMain'
+
+ dependencies {
+ compile project(':core')
+ compile "com.sparkjava:spark-core:$sparkVersion"
+ compile 'net.gpedro.integrations.slack:slack-webhook:1.1.1'
+ compileOnly "org.projectlombok:lombok:$lombokVersion"
+ annotationProcessor "org.projectlombok:lombok:$lombokVersion"
+ }
+}
+
+
+configure(project(':pricenode')) {
+ apply plugin: "org.springframework.boot"
+
+ version = file("src/main/resources/version.txt").text
+
+ jar.manifest.attributes(
+ "Implementation-Title": project.name,
+ "Implementation-Version": version)
+
+ dependencies {
+ compile project(":core")
+ compile project(":assets")
+ compile("org.knowm.xchange:xchange-bitcoinaverage:4.3.3")
+ compile("org.knowm.xchange:xchange-coinmarketcap:4.3.3")
+ compile("org.knowm.xchange:xchange-poloniex:4.3.3")
+ compile("org.springframework.boot:spring-boot-starter-web:1.5.10.RELEASE")
+ compile("org.springframework.boot:spring-boot-starter-actuator")
+ }
+
+ task stage {
+ dependsOn assemble
+ }
+}
+
+
+configure(project(':relay')) {
+ mainClassName = 'bisq.relay.RelayMain'
+
+ dependencies {
+ compile project(':common')
+ compile "com.sparkjava:spark-core:$sparkVersion"
+ compile 'com.turo:pushy:0.13.2'
+ compile 'com.google.firebase:firebase-admin:6.2.0'
+ compile "commons-codec:commons-codec:$codecVersion"
+ }
+}
+
+
+configure(project(':seednode')) {
+ apply plugin: 'com.github.johnrengelman.shadow'
+
+ mainClassName = 'bisq.seednode.SeedNodeMain'
+
+ dependencies {
+ compile project(':core')
+ runtime "org.bouncycastle:bcprov-jdk15on:$bcVersion"
+ compileOnly "org.projectlombok:lombok:$lombokVersion"
+ annotationProcessor "org.projectlombok:lombok:$lombokVersion"
+ }
+}
+
+
+configure(project(':statsnode')) {
+ mainClassName = 'bisq.statistics.StatisticsMain'
+
+ dependencies {
+ compile project(':core')
+ compileOnly "org.projectlombok:lombok:$lombokVersion"
+ annotationProcessor "org.projectlombok:lombok:$lombokVersion"
+ }
}
diff --git a/common/build.gradle b/common/build.gradle
deleted file mode 100644
index 3fed0fb2c0e..00000000000
--- a/common/build.gradle
+++ /dev/null
@@ -1,87 +0,0 @@
-// Note, version 1.6.0 of osdetector-gradle-plugin cannot be applied with a plugins block
-// So a buildscript block is used
-// See https://github.com/google/osdetector-gradle-plugin/issues/15
-buildscript {
- repositories {
- jcenter()
- }
- dependencies {
- classpath 'com.google.gradle:osdetector-gradle-plugin:1.6.0'
- }
-}
-
-plugins {
- id 'java'
- id 'maven'
- id 'com.google.protobuf' version '0.8.5'
-}
-
-apply plugin: 'com.google.osdetector'
-
-ext {
- protobufVersion = '3.5.1'
- platform = osdetector.os == 'osx' ? 'mac' : osdetector.os == 'windows' ? 'win' : osdetector.os
-}
-
-group = 'network.bisq'
-version = '-SNAPSHOT'
-
-sourceCompatibility = 1.10
-
-tasks.withType(JavaCompile) {
- options.encoding = 'UTF-8'
-}
-
-repositories {
- jcenter()
- maven { url 'https://jitpack.io' }
-}
-
-sourceSets.main.java.srcDir "$buildDir/generated/source/proto/main/java"
-
-protobuf {
- protoc {
- artifact = "com.google.protobuf:protoc:$protobufVersion"
- }
-}
-
-dependencies {
- compile "org.openjfx:javafx-base:11:$platform"
- compile "org.openjfx:javafx-graphics:11:$platform"
- compile "org.openjfx:javafx-controls:11:$platform"
- compile "org.openjfx:javafx-fxml:11:$platform"
- compile "org.openjfx:javafx-swing:11:$platform"
-
- compile "com.google.protobuf:protobuf-java:$protobufVersion"
- compile 'com.google.code.gson:gson:2.7'
- compile('com.googlecode.json-simple:json-simple:1.1.1') {
- exclude(module: 'junit')
- }
- compile 'org.springframework:spring-core:4.3.6.RELEASE'
- compile 'org.slf4j:slf4j-api:1.7.22'
- compile 'ch.qos.logback:logback-core:1.1.10'
- compile 'ch.qos.logback:logback-classic:1.1.10'
- compile 'com.google.code.findbugs:jsr305:3.0.1'
- compile 'com.google.guava:guava:20.0'
- compile('com.google.inject:guice:4.1.0') {
- exclude(module: 'guava')
- }
- compile('network.bisq.libdohj:libdohj-core:d4ace7bc') {
- exclude(module: 'jsr305')
- exclude(module: 'slf4j-api')
- exclude(module: 'guava')
- exclude(module: 'protobuf-java')
- }
- compile 'org.jetbrains:annotations:13.0'
- runtime 'org.bouncycastle:bcprov-jdk15on:1.56'
- compile 'org.bouncycastle:bcpg-jdk15on:1.56'
- compile 'commons-io:commons-io:2.4'
- compile 'org.apache.commons:commons-lang3:3.4'
- compileOnly 'org.projectlombok:lombok:1.18.2'
- annotationProcessor 'org.projectlombok:lombok:1.18.2'
- testCompile 'junit:junit:4.12'
-
- compile "org.openjfx:javafx-base:11:$platform"
- compile "org.openjfx:javafx-graphics:11:$platform"
- compile "org.openjfx:javafx-controls:11:$platform"
-}
diff --git a/core/build.gradle b/core/build.gradle
deleted file mode 100644
index 4033a706f84..00000000000
--- a/core/build.gradle
+++ /dev/null
@@ -1,74 +0,0 @@
-plugins {
- id 'java'
- id 'maven'
-}
-
-group = 'network.bisq'
-version = '-SNAPSHOT'
-
-sourceCompatibility = 1.10
-
-tasks.withType(JavaCompile) {
- options.encoding = 'UTF-8'
-}
-
-def jmockitVersion = '1.42'
-
-repositories {
- jcenter()
- maven { url 'https://jitpack.io' }
- maven { url 'https://raw.githubusercontent.com/JesusMcCloud/tor-binary/master/release/' }
-}
-
-dependencies {
- compile project(':assets')
- compile project(':p2p')
- compile 'net.sf.jopt-simple:jopt-simple:5.0.3'
- compile('network.bisq.btcd-cli4j:btcd-cli4j-core:3864e1c4') {
- exclude(module: 'slf4j-api')
- exclude(module: 'httpclient')
- exclude(module: 'commons-lang3')
- exclude(module: 'jackson-core')
- exclude(module: 'jackson-annotations')
- exclude(module: 'jackson-databind')
- }
- compile('network.bisq.btcd-cli4j:btcd-cli4j-daemon:3864e1c4') {
- exclude(module: 'slf4j-api')
- exclude(module: 'httpclient')
- exclude(module: 'commons-lang3')
- exclude(module: 'jackson-core')
- exclude(module: 'jackson-annotations')
- exclude(module: 'jackson-databind')
- }
- compile 'com.fasterxml.jackson.core:jackson-core:2.8.10'
- compile 'com.fasterxml.jackson.core:jackson-annotations:2.8.10'
- compile('com.fasterxml.jackson.core:jackson-databind:2.8.10') {
- exclude(module: 'jackson-annotations')
- }
-
- compileOnly 'org.projectlombok:lombok:1.18.2'
- annotationProcessor 'org.projectlombok:lombok:1.18.2'
-
- testCompile "org.jmockit:jmockit:$jmockitVersion"
- testCompile 'junit:junit:4.12'
- testCompile('org.mockito:mockito-core:2.21.0') {
- exclude(module: 'objenesis')
- }
- testCompile 'org.powermock:powermock-module-junit4:2.0.0-beta.5'
- testCompile 'org.powermock:powermock-api-mockito2:2.0.0-beta.5'
-
-
- testCompile 'org.springframework:spring-test:4.3.6.RELEASE'
- testCompile 'com.natpryce:make-it-easy:4.0.1'
- testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
- testCompileOnly 'org.projectlombok:lombok:1.18.2'
- testAnnotationProcessor 'org.projectlombok:lombok:1.18.2'
-}
-
-test {
- systemProperty 'jdk.attach.allowAttachSelf', true
-
- def jmockit = configurations.testCompile.files.find { it.name.contains("jmockit") }.absolutePath
- jvmArgs "-javaagent:$jmockit"
-}
-
diff --git a/desktop/gradle/witness/README.md b/desktop/gradle/witness/README.md
deleted file mode 100644
index ffef66c90a3..00000000000
--- a/desktop/gradle/witness/README.md
+++ /dev/null
@@ -1 +0,0 @@
-See https://github.com/signalapp/gradle-witness#using-witness
diff --git a/desktop/gradle/wrapper/gradle-wrapper.jar b/desktop/gradle/wrapper/gradle-wrapper.jar
deleted file mode 100644
index 33d1ede74de..00000000000
Binary files a/desktop/gradle/wrapper/gradle-wrapper.jar and /dev/null differ
diff --git a/desktop/gradle/wrapper/gradle-wrapper.properties b/desktop/gradle/wrapper/gradle-wrapper.properties
deleted file mode 100644
index 9dc6ecadea7..00000000000
--- a/desktop/gradle/wrapper/gradle-wrapper.properties
+++ /dev/null
@@ -1,6 +0,0 @@
-#Thu Aug 16 20:34:11 CEST 2018
-distributionBase=GRADLE_USER_HOME
-distributionPath=wrapper/dists
-zipStoreBase=GRADLE_USER_HOME
-zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-bin.zip
diff --git a/desktop/settings.gradle b/desktop/settings.gradle
deleted file mode 100644
index cb072c03a8e..00000000000
--- a/desktop/settings.gradle
+++ /dev/null
@@ -1,2 +0,0 @@
-rootProject.name = 'bisq-desktop'
-include 'common', 'core', 'p2p', 'assets'
\ No newline at end of file
diff --git a/desktop/build.gradle b/gradle/witness/gradle-witness.gradle
similarity index 70%
rename from desktop/build.gradle
rename to gradle/witness/gradle-witness.gradle
index 69e5c4bf7ce..35725cd5582 100644
--- a/desktop/build.gradle
+++ b/gradle/witness/gradle-witness.gradle
@@ -1,98 +1,14 @@
-buildscript {
- repositories {
- jcenter()
- }
- dependencies {
- classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.4'
- classpath files('gradle/witness/gradle-witness.jar')
- classpath 'com.google.gradle:osdetector-gradle-plugin:1.6.0'
- }
-}
-
-apply plugin: 'java'
-apply plugin: 'application'
-apply plugin: 'maven'
-apply plugin: 'witness'
-apply plugin: 'com.github.johnrengelman.shadow'
-apply plugin: 'com.google.osdetector'
-
-ext.platform = osdetector.os == 'osx' ? 'mac' : osdetector.os == 'windows' ? 'win' : osdetector.os
-
-group = 'network.bisq'
-version = '0.8.0-SNAPSHOT'
-
-sourceCompatibility = 1.10
-
-mainClassName = 'bisq.desktop.app.BisqAppMain'
-
-def jmockitVersion = '1.42'
-
-tasks.withType(AbstractArchiveTask) {
- preserveFileTimestamps = false
- reproducibleFileOrder = true
-}
-
-tasks.withType(JavaCompile) {
- options.encoding = 'UTF-8'
-}
-
-sourceSets.main.resources.srcDirs += ['src/main/java'] // to copy fxml and css files
-
-repositories {
- jcenter()
- maven { url 'https://jitpack.io' }
- maven { url 'https://raw.githubusercontent.com/JesusMcCloud/tor-binary/master/release/' }
- maven { url 'https://dl.bintray.com/jerady/maven' }
-}
-
-dependencies {
- // fixme(chirhonul): currently 'gradle install' using system gradle 4.9 fails with:
- // A POM cannot have multiple artifacts with the same type and classifier. Already have MavenArtifact bisq:zip:zip:null, trying to add MavenArtifact bisq:zip:zip:null.
- compile project(':p2p')
- compile project(':core')
- compile project(':common')
- compile 'org.controlsfx:controlsfx:8.0.6_20'
- compile 'org.reactfx:reactfx:2.0-M3'
- compile 'net.glxn:qrgen:1.3'
- compile 'de.jensd:fontawesomefx:8.0.0'
- compile 'de.jensd:fontawesomefx-commons:9.1.2'
- compile 'de.jensd:fontawesomefx-materialdesignfont:2.0.26-9.1.2'
- compile 'com.googlecode.jcsv:jcsv:1.4.0'
- compile 'com.github.sarxos:webcam-capture:0.3.12'
-
- compileOnly 'org.projectlombok:lombok:1.18.2'
- annotationProcessor 'org.projectlombok:lombok:1.18.2'
-
- testCompile "org.jmockit:jmockit:$jmockitVersion"
- testCompile('org.mockito:mockito-core:2.21.0') {
- exclude(module: 'objenesis')
- }
- testCompile 'org.powermock:powermock-module-junit4:2.0.0-beta.5'
- testCompile 'org.powermock:powermock-api-mockito2:2.0.0-beta.5'
- testCompile 'org.springframework:spring-test:4.3.6.RELEASE'
- testCompile 'com.natpryce:make-it-easy:4.0.1'
- testCompileOnly 'org.projectlombok:lombok:1.18.2'
- testAnnotationProcessor 'org.projectlombok:lombok:1.18.2'
-}
-
-test {
- systemProperty 'jdk.attach.allowAttachSelf', true
-
- def jmockit = configurations.testCompile.files.find { it.name.contains("jmockit") }.absolutePath
- jvmArgs "-javaagent:$jmockit"
-}
-build.dependsOn installDist
-installDist.destinationDir = file('build/app')
-
// To update the `dependencyVerification` block below:
//
// 1. Remove the block entirely
// 2. Replace the block with the following command:
//
-// ./gradlew -q calculateChecksums | grep -v network.bisq >> desktop/build.gradle
+// ./gradlew -q calculateChecksums | grep -v network.bisq >> gradle/witness/gradle-witness.gradle
//
// 3. Run `git diff` to verify that expected hashes have changed
// 4. Commit the changes
+//
+// See https://github.com/signalapp/gradle-witness#using-witness for further details.
dependencyVerification {
verify = [
diff --git a/desktop/gradle/witness/gradle-witness.jar b/gradle/witness/gradle-witness.jar
similarity index 100%
rename from desktop/gradle/witness/gradle-witness.jar
rename to gradle/witness/gradle-witness.jar
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index a95009c3b9e..e0b3fb8d70b 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
diff --git a/monitor/build.gradle b/monitor/build.gradle
deleted file mode 100644
index a4ac1b14d24..00000000000
--- a/monitor/build.gradle
+++ /dev/null
@@ -1,29 +0,0 @@
-plugins {
- id 'java'
- id 'application'
-}
-
-group = 'network.bisq'
-version = '0.8.0-SNAPSHOT'
-
-sourceCompatibility = 1.10
-
-mainClassName = 'bisq.monitor.MonitorMain'
-
-repositories {
- jcenter()
- maven { url "https://jitpack.io" }
- maven { url 'https://raw.githubusercontent.com/JesusMcCloud/tor-binary/master/release/' }
-}
-
-dependencies {
- compile project(':core')
- compile 'com.sparkjava:spark-core:2.5.2'
- compile 'net.gpedro.integrations.slack:slack-webhook:1.1.1'
- compileOnly 'org.projectlombok:lombok:1.18.2'
- annotationProcessor 'org.projectlombok:lombok:1.18.2'
-}
-
-build.dependsOn installDist
-installDist.destinationDir = file('build/app')
-distZip.enabled = false
diff --git a/p2p/build.gradle b/p2p/build.gradle
deleted file mode 100644
index b7dd2275c3b..00000000000
--- a/p2p/build.gradle
+++ /dev/null
@@ -1,33 +0,0 @@
-plugins {
- id 'java'
- id 'maven'
-}
-
-group = 'network.bisq'
-version = '-SNAPSHOT'
-
-sourceCompatibility = 1.10
-
-repositories {
- jcenter()
- maven { url 'https://jitpack.io' }
- maven { url 'https://raw.githubusercontent.com/JesusMcCloud/tor-binary/master/release/' }
-}
-
-dependencies {
- compile project(':common')
- compile('com.github.JesusMcCloud.netlayer:tor.native:0.4.2') {
- exclude(module: 'slf4j-api')
- }
- compile('org.apache.httpcomponents:httpclient:4.5.3') {
- exclude(module: 'commons-logging')
- }
- compile 'net.sf.jopt-simple:jopt-simple:5.0.3'
- compile 'org.fxmisc.easybind:easybind:1.0.3'
- compileOnly 'org.projectlombok:lombok:1.18.2'
- annotationProcessor 'org.projectlombok:lombok:1.18.2'
- testCompile 'junit:junit:4.12'
- testCompile 'org.jmockit:jmockit:1.30'
- testCompileOnly 'org.projectlombok:lombok:1.18.2'
- testAnnotationProcessor 'org.projectlombok:lombok:1.18.2'
-}
diff --git a/pricenode/build.gradle b/pricenode/build.gradle
deleted file mode 100644
index 4096ee60041..00000000000
--- a/pricenode/build.gradle
+++ /dev/null
@@ -1,35 +0,0 @@
-plugins {
- id "java"
- id "org.springframework.boot" version "1.5.10.RELEASE"
-}
-
-sourceCompatibility = 1.10
-targetCompatibility = 1.10
-
-version = file("src/main/resources/version.txt").text
-
-jar.manifest.attributes(
- "Implementation-Title": rootProject.name,
- "Implementation-Version": version)
-
-jar.archiveName "${rootProject.name}.jar"
-
-repositories {
- jcenter()
- maven { url "https://jitpack.io" }
- maven { url "https://raw.githubusercontent.com/JesusMcCloud/tor-binary/master/release/" }
-}
-
-dependencies {
- compile project(":core")
- compile project(":assets")
- compile("org.knowm.xchange:xchange-bitcoinaverage:4.3.3")
- compile("org.knowm.xchange:xchange-coinmarketcap:4.3.3")
- compile("org.knowm.xchange:xchange-poloniex:4.3.3")
- compile("org.springframework.boot:spring-boot-starter-web:1.5.10.RELEASE")
- compile("org.springframework.boot:spring-boot-starter-actuator")
-}
-
-task stage {
- dependsOn assemble
-}
diff --git a/relay/build.gradle b/relay/build.gradle
deleted file mode 100644
index b0cdca7a491..00000000000
--- a/relay/build.gradle
+++ /dev/null
@@ -1,32 +0,0 @@
-plugins {
- id 'java'
- id 'application'
-}
-
-group = 'network.bisq'
-version = '0.8.0-SNAPSHOT'
-
-sourceCompatibility = 1.10
-
-mainClassName = 'bisq.monitor.MonitorMain'
-
-repositories {
- jcenter()
- maven { url "https://jitpack.io" }
- maven { url 'https://raw.githubusercontent.com/JesusMcCloud/tor-binary/master/release/' }
-}
-
-dependencies {
- compile project(":common")
- compile("com.sparkjava:spark-core:2.5.2")
- compile("com.turo:pushy:0.13.2")
- compile("com.google.firebase:firebase-admin:6.2.0")
- compile 'commons-codec:commons-codec:1.9'
- compileOnly 'org.projectlombok:lombok:1.18.2'
- annotationProcessor 'org.projectlombok:lombok:1.18.2'
-}
-
-build.dependsOn installDist
-installDist.destinationDir = file('build/app')
-distZip.enabled = false
-
diff --git a/relay/src/main/java/bisq/relay/RelayService.java b/relay/src/main/java/bisq/relay/RelayService.java
index 4bb7910e85c..50c2ee5437e 100644
--- a/relay/src/main/java/bisq/relay/RelayService.java
+++ b/relay/src/main/java/bisq/relay/RelayService.java
@@ -25,7 +25,9 @@
import java.util.Scanner;
import java.util.concurrent.ExecutionException;
-import lombok.extern.slf4j.Slf4j;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
@@ -43,8 +45,8 @@
import com.turo.pushy.apns.util.SimpleApnsPushNotification;
import com.turo.pushy.apns.util.concurrent.PushNotificationFuture;
-@Slf4j
class RelayService {
+ private static final Logger log = LoggerFactory.getLogger(RelayMain.class);
private static final String ANDROID_DATABASE_URL = "https://bisqnotifications.firebaseio.com";
// Used in Bisq app to check for success state. We won't want a code dependency just for that string so we keep it
// duplicated in core and here. Must not be changed.
diff --git a/seednode/build.gradle b/seednode/build.gradle
deleted file mode 100644
index e7e597687fe..00000000000
--- a/seednode/build.gradle
+++ /dev/null
@@ -1,39 +0,0 @@
-buildscript {
- repositories {
- jcenter()
- }
- dependencies {
- classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.4'
- }
-}
-
-apply plugin: 'java'
-apply plugin: 'application'
-apply plugin: 'maven'
-apply plugin: 'com.github.johnrengelman.shadow'
-
-group = 'network.bisq'
-version = '0.8.0-SNAPSHOT'
-
-sourceCompatibility = 1.10
-
-mainClassName = 'bisq.seednode.SeedNodeMain'
-
-sourceSets.main.resources.srcDirs += ['src/main/java'] // to copy fxml and css files
-
-repositories {
- jcenter()
- maven { url "https://jitpack.io" }
- maven { url 'https://raw.githubusercontent.com/JesusMcCloud/tor-binary/master/release/' }
-}
-
-dependencies {
- compile project(':core')
- runtime 'org.bouncycastle:bcprov-jdk15on:1.56'
- compileOnly 'org.projectlombok:lombok:1.18.2'
- annotationProcessor 'org.projectlombok:lombok:1.18.2'
-}
-
-build.dependsOn installDist
-installDist.destinationDir = file('build/app')
-distZip.enabled = false
diff --git a/statsnode/build.gradle b/statsnode/build.gradle
deleted file mode 100644
index 7a3264f13f5..00000000000
--- a/statsnode/build.gradle
+++ /dev/null
@@ -1,27 +0,0 @@
-plugins {
- id 'java'
- id 'application'
-}
-
-group = 'network.bisq'
-version = '0.8.0-SNAPSHOT'
-
-sourceCompatibility = 1.10
-
-mainClassName = 'bisq.statistics.StatisticsMain'
-
-repositories {
- jcenter()
- maven { url "https://jitpack.io" }
- maven { url 'https://raw.githubusercontent.com/JesusMcCloud/tor-binary/master/release/' }
-}
-
-dependencies {
- compile project(':core')
- compileOnly 'org.projectlombok:lombok:1.18.2'
- annotationProcessor 'org.projectlombok:lombok:1.18.2'
-}
-
-build.dependsOn installDist
-installDist.destinationDir = file('build/app')
-distZip.enabled = false