Grails is an open-source web development framework, based on the Groovy programming language (which runs on the Java platform), so, to begin you will need the followings prerequisites:

  • Install java development kit (JDK)

    (We’ll install version 6 of the OpenJDK for maximum compatibility with Grails.)
  • Then, we need to install cURL in our OS.
  • Once we have installed jdk and cURL, we are able to install Grails. To do so, lets install sdkman (SDK Manager). Note: You can see that in other tutorials called gvm, because it was renamed.
  • To finish the sdkman installation, it will ask you to run the following shell script.
  • After that, then finally install Grails itself. To install the latest version of Grails simply run:

    or if you need an older version:
  • Whenever it has finished, you will be able to try your installation:

    Then, enter the newly-created project directory and run it:

    After installing all dependencies, it will show you a local url like the following where you will be able to see the default Grails application:


    You have successfully installed Grails for your development environment!

Note: If you want to change between different Grails versions you can do the following:

Moreover, if you want to check which one is your current Grails version, lets use the following command: