IntelliJ IDEA can be setup so that it already has the preferred code style, import order, etc. for the Candlepin Project. IDEA is slightly different than Eclipse in that it understands nesting: in IDEA you can have an overall project that is composed of multiple modules.
Before you begin, ensure you have the Candlepin git repository checked out,
Buildr working, and IntelliJ IDEA installed and registered. I also recommend
running buildr artifacts; buildr artifacts:sources
so that you will be able to
browse the source code of the libraries we use from within IDEA.
buildr idea
. This task will take care of generating the
assorted classpaths, module definitions, etc.candlepin.ipr
file in the checkout
directory.New...
next
to the incorrect Project SDK, then select JVM and then navigate to your
$JAVA_HOME
(/usr/lib/jvm/java-1.8.0-openjdk
for me).If you wish, you can import some existing settings that I have exported. Unfortunately, IDEA doesn’t let you really pick and choose the settings you want to export, so the exported settings include both the useful (e.g. the team’s accepted import order) and the personal (e.g. my color scheme).
If you do want to import these settings just to get a jump-start, here’s what you should do.
https://github.com/candlepin/intellij
in the dialog.