mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Consume custom bitcoinj/libdojh/btcd deps via JitPack (#899)
This change removes the need to clone and build bisq's forks of bitcoinj, libdohj and btcd-cli4j in order to build bisq itself.
This commit is contained in:
parent
3f19fe3065
commit
ae05c015b9
12
.travis.yml
12
.travis.yml
@ -1,18 +1,6 @@
|
||||
language: java
|
||||
jdk: oraclejdk8
|
||||
|
||||
install:
|
||||
- git clone -b bisq_0.14.4.1 https://github.com/bitsquare/bitcoinj.git
|
||||
- cd bitcoinj
|
||||
- mvn clean install -DskipTests
|
||||
- git clone https://github.com/bitsquare/libdohj.git
|
||||
- cd libdohj
|
||||
- mvn clean install -DskipTests
|
||||
- git clone https://github.com/bitsquare/btcd-cli4j.git
|
||||
- cd btcd-cli4j
|
||||
- mvn clean install -DskipTests
|
||||
- cd ..
|
||||
|
||||
script: mvn clean install -DskipTests
|
||||
|
||||
notifications:
|
||||
|
12
core/pom.xml
12
core/pom.xml
@ -29,12 +29,10 @@
|
||||
<version>5.0.3</version>
|
||||
</dependency>
|
||||
|
||||
<!-- We use a local project atm but should be added either as jar or to a https repo.
|
||||
Default repo for that project is http only, so it is unsafe to use.-->
|
||||
<dependency>
|
||||
<groupId>com.neemre.btcd-cli4j</groupId>
|
||||
<groupId>com.github.bitsquare.btcd-cli4j</groupId>
|
||||
<artifactId>btcd-cli4j-core</artifactId>
|
||||
<version>0.5.8.1</version>
|
||||
<version>master-SNAPSHOT</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.slf4j</groupId>
|
||||
@ -64,9 +62,9 @@
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.neemre.btcd-cli4j</groupId>
|
||||
<groupId>com.github.bitsquare.btcd-cli4j</groupId>
|
||||
<artifactId>btcd-cli4j-daemon</artifactId>
|
||||
<version>0.5.8.1</version>
|
||||
<version>master-SNAPSHOT</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.slf4j</groupId>
|
||||
@ -95,7 +93,7 @@
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
<!-- For some strange reason we need to include jackson here extra (is included in com.neemre) -->
|
||||
<!-- For some strange reason we need to include jackson here extra (is included in btcd-cli4j) -->
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-core</artifactId>
|
||||
|
23
doc/build.md
23
doc/build.md
@ -86,29 +86,6 @@ At IntelliJ 14 you need to edit the idea.properties in the app container:
|
||||
/Applications/IntelliJ\ IDEA\ 14\ CE.app/Contents/bin/idea.properties
|
||||
|
||||
|
||||
Build required dependencies
|
||||
---------------------------
|
||||
### 3. Install BitcoinJ (branch bisq_0.14.4.1), libdohj and Btcd-cli4j
|
||||
libdohj is used for supporting usage of some altcoins with BitcoinJ.
|
||||
Btcd-cli4j is used for RPC communication to a local Bitcoin Core node for verifying the BSQ transactions.
|
||||
It is not needed for a normal user to run such a "full node" but for the build it is required.
|
||||
|
||||
$ cd ..
|
||||
$ git clone -b bisq_0.14.4.1 https://github.com/bitsquare/bitcoinj.git
|
||||
$ cd bitcoinj
|
||||
$ mvn clean install -DskipTests -Dmaven.javadoc.skip=true
|
||||
|
||||
$ cd ..
|
||||
$ git clone https://github.com/bitsquare/libdohj.git
|
||||
$ cd libdohj
|
||||
$ mvn clean install -DskipTests -Dmaven.javadoc.skip=true
|
||||
|
||||
$ cd ..
|
||||
$ git clone https://github.com/bitsquare/btcd-cli4j.git
|
||||
$ cd btcd-cli4j
|
||||
$ mvn clean install -DskipTests -Dmaven.javadoc.skip=true
|
||||
$ cd ..
|
||||
|
||||
Build bisq
|
||||
-----------------
|
||||
|
||||
|
@ -48,17 +48,6 @@ rm -r UnlimitedJCEPolicyJDK8 jce_policy-8.zip
|
||||
$ sudo ldconfig
|
||||
$ protoc --version
|
||||
|
||||
echo "Install bitcoinj"
|
||||
cd ~
|
||||
git clone -b bisq_0.14.4.1 https://github.com/bitsquare/bitcoinj.git
|
||||
cd bitcoinj
|
||||
mvn clean install -DskipTests -Dmaven.javadoc.skip=true
|
||||
|
||||
cd ~
|
||||
git clone -b bisq_0.14.4.1 https://github.com/bitsquare/btcd-cli4j.git
|
||||
cd btcd-cli4j
|
||||
mvn clean install -DskipTests -Dmaven.javadoc.skip=true
|
||||
|
||||
|
||||
echo "Install and resolve dependencies for bisq"
|
||||
cd ~
|
||||
|
14
pom.xml
14
pom.xml
@ -84,6 +84,10 @@
|
||||
</build>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>jitpack.io</id>
|
||||
<url>https://jitpack.io</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>sonatype-oss-snapshot</id>
|
||||
<snapshots/>
|
||||
@ -92,14 +96,12 @@
|
||||
</repositories>
|
||||
|
||||
<dependencies>
|
||||
<!--bitcoinj
|
||||
Needs local installation!
|
||||
See doc/build.md for further info
|
||||
-->
|
||||
<!-- NOTE: our custom bitcoinj dependency is resolved transitively
|
||||
via the libdohj dependency below -->
|
||||
<dependency>
|
||||
<groupId>org.libdohj</groupId>
|
||||
<groupId>com.github.bitsquare.libdohj</groupId>
|
||||
<artifactId>libdohj-core</artifactId>
|
||||
<version>0.14.2</version>
|
||||
<version>master-SNAPSHOT</version> <!-- 0.14.2 -->
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>com.google.code.findbugs</groupId>
|
||||
|
Loading…
Reference in New Issue
Block a user