Skip to content

Instantly share code, notes, and snippets.

@anujku
Created June 5, 2015 20:13
Show Gist options
  • Save anujku/0c9ef41a39e4be0ff4e2 to your computer and use it in GitHub Desktop.
Save anujku/0c9ef41a39e4be0ff4e2 to your computer and use it in GitHub Desktop.
Running Groovy from Sublime Text Editor

Running Groovy from Sublime Text Editor

  • Open the editor and go to menu Tools->Build System
  • This will open a new file named untitled.sublime-build
  • Add the path to your Groovy installation directory as show below.
{
  "cmd": ["C:/Users/kulkan02/.gvm/groovy/2.3.0/bin/groovy.bat", "$file"]
}
  • Now save the file as groovy.sublime-build
  • Open your groovy script and in the menu select Tools->Build System->Groovy
  • To compile and execute, Tools->Build’ or F7 or Ctrl+B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment