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.
SGVM is currently distributed via Bintray
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 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'])