How to run multiple versions of Groovy / Grails

How can I run multiple versions of groovy / grails without changing the settings?

+3
source share
6 answers

If you are using linux or osx, theres a shell script here that might help, and an alternative script here

+2
source

GVM (Groovy enVironment Manager) is a great option if you are on a Mac, Linux, Solaris or Windows with Cygwin. GVM supports the installation and management of Groovy, Grails, Griffon, and Gradle.

Grails , Windows , Cygwin , Gravy , .

+8

GROOVY_HOME/GRAILS_HOME PATH. Grails bat file/shell script, , .

Grails , home/.grails , .

+3

7 grails ubuntu. .bashrc.

function switchGrails() {

echo " grails: $1"

sudo rm/opt/grails

sudo ln -s/opt/$1/opt/grails

"!"

}

alias grails225 = switchGrails "grails-2.2.5"

alias grails224 = switchGrails "grails-2.2.4"

alias grails223 = switchGrails "grails-2.2.3"

alias grails233 = switchGrails "grails-2.3.3"

alias grails235 = switchGrails "grails-2.3.5"

alias grails237 = switchGrails "grails-2.3.7"

alias grails2311 = switchGrails "grails-2.3.11" '

. .bashrc. cd ..bashrc .bashrc.

: https://pkashyap28.wordpress.com/2014/09/11/manage-multiple-grails-application-in-ubuntu/

+2

, Windows: GRAILS. GRAILS_HOME GROOVY_HOME ( script, GUI,...), cmd, grais-, . , , .

0

@tim_yates. ( UNIX).

1- grails opt:

/opt/grails-2.3.1
/opt/grails-2.5.3
/opt/grails-3.1.1

2- grails.sh . ( /opt/grails-selector)

~/.bash_profile. PATH var , grails.sh. GRAILS_HOME ( , , , , .

export PATH=$PATH:/opt/grails-selector
export GRAILS_HOME=/opt/grails-3.1.9

4- . , . grails, grails.sh, , . , .

0

Source: https://habr.com/ru/post/1793349/


All Articles