Bisq is a safe, private and decentralized way to exchange bitcoin for national currencies and other cryptocurrencies. Bisq uses peer-to-peer technology and multi-signature escrow to facilitate trading without the need for a centralized third party exchange. Bisq is non-custodial (never holds your funds), and incorporates a human arbitration system to resolve disputes.
For more information, see https://bisq.network/intro and for step-by-step getting started instructions, see https://bisq.network/get-started.
You will need OpenJDK JDK 10 installed to complete the following instructions.
-
Clone the Bisq source code and cd into
bisqgit clone https://github.com/bisq-network/bisq cd bisq -
Build Bisq
You do not need to install Gradle to complete the following command. The
gradlewshell script will install it for you if necessary../gradlew build
With the above build complete, the Bisq executable jar is now available in the desktop/build/libs/ directory. Run it as follows, replacing {version} with the actual version found in the filename:
java -jar desktop/build/libs/desktop-{version}-all.jar`
The following instructions have been tested on IDEA 2018.2
- Open IDEA
- Go to
Help->Edit Custom Properties..., add a line to the file that readsidea.max.intellisense.filesize=12500(to handle Bisq's very large generatedPB.javaProtobuf source file) - Go to
Preferences->Plugins. Search for and install the Lombok plugin. When prompted, do not restart IDEA. - Go to
Preferences->Build, Execution, Deployment->Compiler->Annotation Processorsand check theEnable annotation processingoption (to enable processing of Lombok annotations) - Restart IDEA
- Go to
Import Project, select thesettings.gradlefile and clickOpen - In the
Import Project from Gradlescreen, check theUse auto-importoption and clickOK - When prompted whether to overwrite the existing
.ideadirectory, clickYes - In the
Projecttool window, right click on the root-level.ideafolder, selectGit->Revert...and click OK in the dialog that appears (to restore source-controlled.ideaconfiguration files that get overwritten during project import) - Go to
Build->Build Project. Everything should build cleanly. You should be able to run tests, runmainmethods in any component, etc.
TIP: If you encounter compilation errors related to the
io.bisq.generated.protobuffer.PBclass, it is probably because you didn't run the full Gradle build above. You need to run thegeneratePrototask in thecommonproject. You can do this via the Gradle tool window in IDEA, or you can do it the command line withcd common; ./gradlew generateProto. Once you've done that, runBuild->Build Projectagain and you should have no errors.