Skip to content

setup IntelliJ IDEA

Andrey Vakhterov edited this page Jul 17, 2015 · 1 revision

Setup IntelliJ IDEA

  1. Download and install JDK:
    http://www.oracle.com/technetwork/java/javase/downloads/index.html

  2. Download and install IntelliJ IDEA:
    https://www.jetbrains.com/idea/

  3. Download Groovy SDK
    http://www.groovy-lang.org/download.html

  4. Launch IntelliJ IDEA and create new project.

  5. Select "Groovy project"
    Project SDK: your JDK
    Groovy library: downloaded groovy library
    Groovy project
    Then click [Next].

  6. Set project location to plugins/VarScript/ in your server
    Then click [Finish].

  7. Go to "Project Structure" (Ctrl+Alt+Shift+S) -> Modules -> Sources
    and mark autorun and scripts as Sources, all other folders as Excluded
    Project sructure

  8. Go to "Project Structure" (Ctrl+Alt+Shift+S) -> Libraries
    click "New Project Library" (+) -> Java and select your server jar file.
    click "New Project Library" (+) -> Java and select VarScript.jar.
    Project libraries
    In the same way, add other libraries, which will be used in the project.
    Then click [OK].

  9. Everything is ready!
    Use IntelliJ IDEA to create scripts and classes.

How to define varscript variables in IDEA:

  1. type the name of variable and press [Alt+Enter]
    dynamic property

  2. click to "Add dynamic property"

  3. setup property
    Class: java.lang.Object
    Property type: type of variable
    property type

Clone this wiki locally