GVM

Lightning Talk


@beckje01

What is GVM


Manages versions of tools for you.

  • Groovy
  • Grails
  • Griffon
  • Gradle
  • vert.x

Install


You must have the following to use GVM:

  • JAVA_HOME environment variable set
  • curlĀ 
  • unzip

Then run:
curl -s get.gvmtool.net | bash

Usage


List what versions are available:
gvm list grails

Use a version:
gvm use grails 2.1.4

GVM Extensions


There is even extensions available. I use the switch extension with grails.

Install
cd ~/.gvm/ext
curl https://raw.github.com/gvmtool/gvm-extensions/master/src/main/resources/extensions/gvm-switch.sh > gvm-switch.sh

GVM Switch Usage


gvm switch grails

It will inspect application.properties and set the current version to whatever is found in that file.

Great for moving between many grails projects.
Made with Slides.com