How do i run different versions of grails on one windows machine and let them interact with each other?

Viewed 78

I am running an application on grails 2.3.7. Now I try to develop a second application which runs on grails 3.3.9. I would like them to run on the same windows machine at the same time. In the end, I would like them to interact with each other.

1 Answers

There are a number of ways to manage multiple versions of Grails on the same machine.

You could download as many versions as you like:

c:\tools\grails-2.5.4
c:\tools\grails-3.3.10

If you set GRAILS_HOME to c:\tools\grails-2.5.4 and add %GRAILS_HOME%\bin: to the front of your PATH, you will be using Grails 2.5.4. If you set GRAILS_HOME to c:\tools\grails-3.3.10 and add %GRAILS_HOME%\bin: to the front of your PATH, you will be using Grails 3.3.10.

EDIT

Also note that you don't have to mess with any of that if you are using the grailsw that is in an existing project. You don't need to set PATH or GRAILS_HOME or any of that for Grails (you will for the JDK). For an existing Grails project with the wrapper in it, simply use the grailsw that is in the project instead of a Grails command that is on your PATH. You can have different projects configured with different wrappers.

Related