- 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 asgroovy.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