Skip to content

Building Vis From Source

Paweł Pastuszak edited this page Mar 11, 2016 · 16 revisions

Prerequisites:

  • Git with LFS extension installed
  • JDK 8

Clone repository:

git clone https://github.com/kotcrab/vis-editor vis-editor

Command line

Running from command line:

gradlew :editor:run

Building zip distribution:

gradlew destZip

This will create zip file in vis-editor\build\distributions containing main jar file, built-in plugins and all required editor libraries.

Intellij IDEA

Intellij IDEA is recommend IDE for Vis development. This section will explain how to setup Vis development environment. Select File, New, Project from Existing Sources and then select root build.gradle file. Press OK in next window and then press OK again in module selection window.

Common problems

If you are getting errors about invalid source level press Ctrl+Shift+Alt+S to open Project Settings, go to Project tab and set project language level to 8.

Launching Editor

  1. Create new Gradle run configuration, change name to something like "Run Editor"
  2. Set Gradle project to vis-editor:editor
  3. Set task to run
  4. Set VM options to -Dfile.encoding=UTF-8
  5. Save configuration and launch, use this configuration for future launches.

Launching VisUI test application

  1. Create new Gradle run configuration, change name to something like "Run UI test app"
  2. Set Gradle project to vis-editor:ui
  3. Set task to run
  4. Save configuration and launch, use this configuration for future launches.