2016-08-02 11:10:47 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2018-10-24 23:40:24 -07:00
|
|
|
JAVA_HOME=/usr/lib/jvm/openjdk-10.0.2
|
|
|
|
|
|
|
|
if [ ! -d "$JAVA_HOME" ]; then
|
|
|
|
apt-get -y install curl
|
|
|
|
|
|
|
|
curl -L -O https://download.java.net/java/GA/jdk10/10.0.2/19aef61b38124481863b1413dce1855f/13/openjdk-10.0.2_linux-x64_bin.tar.gz
|
|
|
|
mkdir -p $JAVA_HOME
|
|
|
|
tar -zxf openjdk-10.0.2_linux-x64_bin.tar.gz -C $JAVA_HOME --strip 1
|
|
|
|
rm openjdk-10.0.2_linux-x64_bin.tar.gz
|
|
|
|
|
|
|
|
update-alternatives --install /usr/bin/java java $JAVA_HOME/bin/java 2000
|
|
|
|
update-alternatives --install /usr/bin/javac javac $JAVA_HOME/bin/javac 2000
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -d "bisq" ]; then
|
|
|
|
apt-get -y install git
|
|
|
|
git clone https://github.com/bisq-network/bisq.git
|
|
|
|
fi
|
2018-10-23 17:43:10 -05:00
|
|
|
cd bisq
|
Replace Maven with Gradle in docs and scripts
This commit takes a pass through all documentation and scripts,
replacing any remaining `mvn` commands with their `gradle` equivalents,
replacing `target/*` paths with their `build/*` equivalents, and so on.
Note that the instruction to install Maven has been removed entirely
from documentation and scripts, as opposed to instructing users to
install Gradle, because with the Gradle wrapper (the `gradlew` script in
the root of this repository), it is unnecessary to install Gradle at
all. Users may still do this with, e.g. `brew install gradle` if they
like, but otherwise can get everything they need done with `./gradlew`
commands.
This commit also replaces lowercase 'bisq' with capitalized 'Bisq' where
appropriate in documentation.
Like the previous commit, this is a best-effort approach, and not all
scripts are perfectly up-to-date and tested. Indeed, many of the docs
and scripts we have now are essentially legacy documents and should
probably be scrapped or reworked completely.
2018-03-21 06:03:27 +01:00
|
|
|
./gradlew build
|