Setting up the phoenix project in IntelliJ
Before importing the project we need to install openJDK on your machine and the latest scala plugin.
Adopt Open JDK
You can install AdoptOpenJDK by downloading version 8 from https://adoptopenjdk.net
Make sure the following commands work on your terminal once you have installed
➜ ~ java -version
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_222-b10)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.222-b10, mixed mode)
➜ ~ which java
/usr/bin/java
➜ ~ javac -version
javac 1.8.0_222
Setting up IntelliJ
Install Scala Plugin
- In IntelliJ open up the preferences panel
IntelliJ Idea -> Preferences
- search for plugins
- search for scala
- install
- restart your IDE
Import Project
From the welcome screen, or select File -> Open.
- Open the project you wish to import(phoenix)
- Import Project from external and select sbt
- Enable Library sources
- Enable sbt sources
- Allow overriding sbt version
- select version 8 of AdoptOpenJDK for Project JDK
- Click finish
Please note that this will take a while as all sbt sources are downloaded.