Srinath
Srinath

Reputation: 1

I have the latest version of grails 3.3.7 but when i check grails -version it still says 2.3.11. On a separate note, I need to upgrade to 2.5.6.

I have the latest version of grails 3.3.7 but when i check grails -version it still says 2.3.11. On a separate note, I need to upgrade to 2.5.6.

This is what I see: Application expects grails version [2.5.6], but GRAILS_HOME is version [2.3.11] - use the correct Grails version or run 'grails upgrade' if this Grails version is newer than the version your application expects.

But when I use brew install grails, I see: grails 3.3.7 is already installed and up-to-date

I am confused, what is the correct version thats on my system now? and how can I get 2.5.6?

Upvotes: 0

Views: 189

Answers (1)

Jeff Scott Brown
Jeff Scott Brown

Reputation: 27220

If grails --version reports 2.3.11 that indicates that you have 2.3.11 installed on your system and that it is on your PATH. If you have multiple versions on your PATH (there is no good reason to do that), it looks like 2.3.11 is the first one.

You may install as many versions of Grails a you like and have them all installed concurrently. In order to use a particular version, have your GRAILS_HOME environment variable point to the directory where you have that version installed and make sure that %GRAILS_HOME%\bin is on your PATH.

Upvotes: 1

Related Questions