/sgvm

A Groovy interface for the GVM

Primary LanguageGroovyApache License 2.0Apache-2.0

Super Groovy enVironment Manager

An API for the GVM written in Groovy.

SGVM helps you use the awesome GVM in your automated processes without the hassle of correctly setting up and interacting with the shell.

Distribution

SGVM is currently distributed via Bintray
download

Implemented Methods

Use

Get the path of the latest locally installed Grails distribution:

Path latestInstalledGrails = Gvm.use.grails()

Install and get the path of the latest Grails distribution:

Path latestGrails = Gvm.use.grails([install: true])

Install and get the path of a specific Grails distribution:

Path grails = Gvm.use.grails([version: '2.1.4', install: true])

Install

Install and get the path of the latest Grails distribution:

Path latestGrails = Gvm.install.grails()

Install and get the path of the latest Grails distribution and set it as the default version:

Path latestGrails = Gvm.install.grails([default: true])

Install and get the path of a specific Grails distribution:

Path grails = Gvm.install.grails([version: '2.1.4'])

Uninstall

Uninstall a Grails distribution:

Gvm.uninstall.grails([version: '2.1.4'])

Other supported options

  • offline - false by default. Set true in order to work without the remote GVM service.