Cannot configure Grails 3.0.4 in GGTS, Grails installed using GVM

1.2k Views Asked by At

I have installed GGTS 3.6.4 and also Groovy & Grails using GVM on my MAC OS. In GGTS, Preferences - Configure Grails Installation - Add, I want to add the latest grails installed by GVM in /Users/user/.gvm/grails/current I have also enabled the hidden folders in Mac.

2

There are 2 best solutions below

1
thecodesmith_ On

According to the GGTS website, it only supports Grails 1.3/2.x (not the latest Grails 3.x). Pivotal discontinued support for GGTS earlier this year.

The best IDE alternative currently is IntelliJ IDEA. Grails 3 is built on Gradle, so no special support for Grails is necessary as IDEA already has excellent support for Gradle projects.

1
Sandeep Roniyaar On

grails version 3.x.x doesn't contain build.properties file.

So, you should follow the following steps:

  1. Create /grails-3.x.x/build.properties file.
  2. Inside build.properties write the content version name as

grails.version=3.1.1

  1. Now, open GGTS .
  2. Go to Window/Preferences.
  3. Type grails in the 'type filter text'.
  4. Select Grails.
  5. Now click on Add button on the right panel to add grails version 3.x.x .
  6. Select the grails version from the My computer.
  7. You are ready to go.

Your GGTS will recognize it as now Grails installation.