Skip to content

Setup your development environment with IntelliJ IDEA

Valeria Rogatchevskikh edited this page Jan 25, 2017 · 6 revisions
  1. Install JAVA SDK 7 and 8 and ant

  2. Install google web toolkit SDK version 2.5.1 http://www.gwtproject.org/versions.html link may be broken, here it is: https://storage.googleapis.com/gwt-releases/gwt-2.8.0.zip

  3. Follow instructions here: https://cloud.google.com/appengine/docs/java/tools/setting-up-intellij and setup intelliJ. The community edition does not work so you have to use the Ultimate paid version (there is a free trial). I used the Early Access Program: chose an option here.

    You still need to download and install

  4. Once the project cloned: create and configue GAE/build.properties

  5. Create and configure GAE/war/WEB-INFO/appengine-web.xml

  6. cd akvo-flow/GAE run the script ./start.sh

  7. import project to intelliJ select akvo-flow select GAE and un-select all the others un-select all the libraries

  8. Project structure, (F4) -> Modules -> Google app engine: select servlet

  9. Add all dependencies add jars using mouse right click/add library:

  • war
  • war/WEB_INFO/lib
  • gwtlibs
  1. Press F4 on project name. You will see Problems in the problems section, use intellij tool to fix them by adding all the libs to the artifact.

At this point if you press rebuild the project it should compile without errors.

  1. Press Run -> Edit configuration

    Add -> Google App Engine development server.

    In open browser replace http://localhost:8080 by http://localhost:8888/_ah/admin

    Go to Startup/Connection tab: for startup script un-select use default and select start.sh for start script

    Accept and Save

  2. Press run

    You should sucessfully be able to go to http://localhost:8888/_ah/admin

  3. Code formatting

    Use this link to import eclipse code formatting file: Config/ide/eclipse/eclipse-preferences.xml https://blog.jetbrains.com/idea/2014/01/intellij-idea-13-importing-code-formatter-settings-from-eclipse/

  4. Use Cursive plugin to view clojure files in IntelliJ Idea https://cursive-ide.com/userguide/

Clone this wiki locally