Installed GVM from:

http://gvmtool.net

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
~ $ curl -s get.gvmtool.net | bash
Thanks for using                                                    
 
_____/\\\\\\\\\\\\__/\\\________/\\\__/\\\\____________/\\\\_       
 ___/\\\//////////__\/\\\_______\/\\\_\/\\\\\\________/\\\\\\_      
  __/\\\_____________\//\\\______/\\\__\/\\\//\\\____/\\\//\\\_     
   _\/\\\____/\\\\\\\__\//\\\____/\\\___\/\\\\///\\\/\\\/_\/\\\_    
    _\/\\\___\/////\\\___\//\\\__/\\\____\/\\\__\///\\\/___\/\\\_   
     _\/\\\_______\/\\\____\//\\\/\\\_____\/\\\____\///_____\/\\\_  
      _\/\\\_______\/\\\_____\//\\\\\______\/\\\_____________\/\\\_ 
       _\//\\\\\\\\\\\\/_______\//\\\_______\/\\\_____________\/\\\_
        __\////////////__________\///________\///______________\///__
                                                                      
                                       Will now attempt installing...
                                                                      
Looking for a previous installation of GVM...
Looking for JAVA_HOME...
Validating JAVA_HOME...
Looking for unzip...
Looking for curl...
Installing gvm scripts...
Create distribution directories...
Create candidate directories...
Download script archive...
Extract script archive...
Install scripts...
Make init script executable...
Prime config file...
Attempt update of bash profiles...
Updated existing /Users/miro/.bash_profile
Updated existing /Users/miro/.profile
Updated existing /Users/miro/.bashrc
Attempt update of zsh profiles...
Created and initialised /Users/miro/.zshrc
Clean up local variables...
 
All done!
Please open a new terminal, or run the following in the existing one:
 
    source "/Users/miro/.gvm/bin/gvm-init.sh"
 
Then issue the following command:
 
   gvm help
 
Enjoy!!!

Using

1
2
3
4
5
6
7
binsh $ gvm current
Using:
groovy: 2.0.6
grails: 2.2.0
griffon: 1.1.0
gradle: 1.3
vertx: 1.3.0.final

Fix for zsh

http://blog.andresteingress.com/2012/12/14/gvm-the-groovy-environment-manager/

1
2
3
4
cineplex $ cat ~/.zshrc
#THIS MUST BE AT THE END OF THE FILE FOR GVM TO WORK!!!
# [[ -s "/Users/miro/.gvm/bin/gvm-init.sh" && ! $(which gvm-init.sh) ]] && source "/Users/miro/.gvm/bin/gvm-init.sh"
source "/Users/miro/.gvm/bin/gvm-init.sh"