IntelliJ IDEA lets you create a Gradle project with Grails integration using Gradle-Grails plugin
.
The plugin lets you build Grails applications using Gradle.
Creating Gradle Project with Grails integration
- Create a simple Gradle project.
- Open
build.gradlefile. - From the Gradle-Grails plugin
Website copy the content of the
build.gradleexample and paste it to the opened build file inside your IDE.Make sure that the Gradle, Grails and Groovy plugin versions are compatible between each other.
- In the Gradle tool window, click
icon to refresh your Gradle project.
The list of Grails tasks are added to the All tasks area in the Gradle Tool Window.
- From the All tasks list, run init task.
The task creates a Grails application. The Grails View tool window becomes available and you can start working with Grails.
For more information on working with Grails, see Grails procedures.