mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
2.1 KiB
2.1 KiB
Importing Bisq into IntelliJ IDEA
Most Bisq contributors use IDEA for development. The following instructions have been tested on IDEA 2019.2.
- Follow the instructions in build.md to clone and build Bisq at the command line.
- Open IDEA
- Go to
Preferences->Plugins
(File->Settings, Plugins for Windows
). Search for and install the Lombok plugin. When prompted, do not restart IDEA. - Go to
Preferences->Build, Execution, Deployment->Compiler->Annotation Processors
and check theEnable annotation processing
option (to enable processing of Lombok annotations) - Restart IDEA
- Go to
Import Project
, select thesettings.gradle
file and clickOpen
- In the
Import Project from Gradle
screen, check theUse auto-import
option and clickOK
- When prompted whether to overwrite the existing
.idea
directory, clickYes
(This step was not required with 2019.2 but is kept here in case you are running an older version) - In the
Project
tool window, right click on the root-level.idea
folder, selectGit->Revert...
and click OK in the dialog that appears (to restore source-controlled.idea
configuration files that get overwritten during project import) - If you have not set up JDK11 in IntelliJ, Go to
File->Project Structure->Project
and under theProject SDK
option locate your JAVA_HOME folder, then inProject language level
beneath select11 - ...
. - Select JDK 11 for gradle as well. Go to
Preferences->Build, Execution, Deployment->Build Tools->Gradle
and select the JDK11 location for Gradle JVM - Go to
Build->Build Project
. Everything should build cleanly. You should be able to run tests, runmain
methods in any component, etc.
TIP: If you encounter compilation errors in IDEA related to the
protobuf.*
classes, it is probably because you didn't build Bisq at the command line as instructed above. You need to run thegenerateProto
task in thecommon
project. You can do this via the Gradle tool window in IDEA, or you can do it the command line with./gradlew :common:generateProto
. Once you've done that, runBuild->Build Project
again and you should have no errors.