[bisq-network/bisq] Refactor Gradle build (#1862)
Devin Bileck
notifications at github.com
Mon Nov 5 07:40:09 UTC 2018
devinbileck approved this pull request.
utACK. Looks good to me. Thanks for putting this together!
Just have a few minor comments.
> + 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'
Since you have defined the junit version above, I assume this can be changed to the following?
`testCompile "junit:junit:$junitVersion"`
> +
+ 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:4.3.6.RELEASE'
Since you have the spring version defined above, I assume this can be changed to the following?
`compile "org.springframework:spring-core:$springVersion"`
> +
+ 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'
A comment that is out of scope for this PR. But perhaps this should be taken out of the gradle file and put into a resource file, similar to how it is done for pricenode?
`version = file("src/main/resources/version.txt").text`
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/1862#pullrequestreview-171428395
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20181104/c29ce31c/attachment.html>
More information about the bisq-github
mailing list