I’ve been trying to learn griffon and upgrading to the latest version I noticed that there is a nifty tool that can be used to install Groovy related stuff like groovy / grails/ griffon. I use ubuntu for my personal coding and was able to get it up and running quite easily.
GVM is inspired by a Ruby tool and copying such and awesome utility was a no brainer.
Having used it with my coding experiments at home I just had to have this for work.
The first set back is that the steps required an upgrade to PowerShell 3.0.
You just have to google PowerShell 3.0 installer and you would have to install. Just remember to pick the correct version for your OS. There are different versions for Windows 7, Windows 8 and Windows Server 2008. Remember to close any open Powershell consoles before starting the installation.
After installation you have to check the version of PowerShell installed by typing this command within Power Shell:
This will display the version of the Powershell installed:
Major Minor Build Revision
—– —– —– ——–
3 0 – 1 – 1
Open as Administrator a PowerShell console and type this command:
This will allow you to execute scripts.
Run this command:
(new-object Net.WebClient).DownloadString(“http://psget.net/GetPsGet.ps1”) | iex
This will download the script from github.
Type this command to install the GVM module:
Type this command to test:
Something like this should be displayed:
Usage: gvm <command> <candidate> [version]
gvm offline <enable|disable>
install or i <candidate> [version]
uninstall or rm <candidate> <version>
list or ls <candidate>
use or u <candidate> [version]
default or d <candidate> [version]
current or c [candidate]
version or v
broadcast or b
help or h
candidate : asciidoctorj, crash, gaiden, glide, gradle, grails, griffon, groovy, groovyserv, jbake, lazybones, sp
version : where optional, defaults to latest stable if not provided