If you are unlucky like me and you are constrained to work under windows for your groovy / grails / Java development, you certainly miss tools like GVM
This is a poor man’s windows dev environment switcher, based on symbolic links and made for Windows 7 or higher. And yes, it’s a one line command line :)
You are even poorer? you use XP :) Don’t panic, if you don’t have mklink on your windows, check alternatives here Symbolic links on windows
genv grails 2.4.4
genv groovy 2.3.0
genv gradle 2.1
genv apache-maven 3.2.3
You can customize and use the example setup file OR Manually:
Define root installation folder for Grails, Groovy, Gradle, Maven, etc. It’s here where you should unzip all of them :
-----------------------------------------------
| |
-----------------------------------------------
| |
| ---------------
|
| Variable name : |ENV_SWITCH_ROOT| |
| ---------------
|
| ---------------
|
| Variable value : |D:\Dev | |
| -----
--------- |
| |
-----------------------------------------------+
Home variables :
GRAILS_HOME -> %ENV_SWITCH_ROOT%\grails-current
GROOVY_HOME -> %ENV_SWITCH_ROOT%\groovy-current
GRADLE_HOME -> %ENV_SWITCH_ROOT%\gradle-current
M2_HOME -> %ENV_SWITCH_ROOT%\apache-maven-current
Making everything executable :
PATH -> %PATH%... %ENV_SWITCH_ROOT%;%GRAILS_HOME%\bin;%GROOVY_HOME%\bin;%GRADLE_HOME%\bin;%M2_HOME%\bin
vgrails.bat : Auto set grails version on an existing project
vgrails
getgrailsversion.bat : Display grails version of an existing project
getgrailsversion