- Install JDK 1.7 from oracle (http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html)
- Install IntelliJ (community edition is fine)
- Launch, Configure (option on splash screen) -> Plugins -> search for Scala (http://link.isaachodes.io/image/1g1P0K2G1i2A) and install, apply + restart
- Clone github repo of ADAM https://github.com/bigdatagenomics/adam (git clone [email protected]:bigdatagenomics/adam.git)
- Import project in intellij--choose the cloned repo, then the pom.xml in it to make sure the maven deps and build are imported by IntelliJ (http://link.isaachodes.io/image/3S1X2U2a0V3R)
- follow the wizard, which should set things up intelligently
- Choose the JDK (1.7) http://link.isaachodes.io/image/2b1I2r382K2y
- create intellij project http://link.isaachodes.io/image/1Q21010T2d2I
- finish
- Configure/use IntelliJ
- open a file, add line numbers http://link.isaachodes.io/image/2N0a0b3F3o02
- keyboard/click IDE-specific shortcuts:
- command-b --- jump to source of symbol at cursor
- ctrl-j --- type and quick documentation (mini window) at cursor
- shift-command-i --- miniwindow of source at cursor
- shift-control-p --- quick type information at cursor
- right-click on a symbole -> Find Usages to see where symbol is used in the code
- Test that everything works (it should) by building the project
- Build -> Make Project
- Result: http://link.isaachodes.io/image/223H472f3x0V
- Add run configurations + get them running
- CLI - http://link.isaachodes.io/image/2h1R2V1m3U2z for example
- Unit test (run all) - http://link.isaachodes.io/image/2I0v470Q3U0H
- look more into configurations - https://www.jetbrains.com/idea/webhelp/creating-and-editing-run-debug-configurations.html
- Script to launch latest version of Adam from command line (put this file in
path with name
adam
):#! /bin/bash
exec java -jar
$(ls -tc ~/PATH/TO/ADAM/adam-cli/target/adam-?.*.jar | head -n 1) "$ @"