We can import our Gradle project inside IntelliJ IDEA. Once we start IDEA, we can open our build.gradle file:
A dialog will appear that will ask whether you want to open it as a file or as a project. Click on Open As Project:
If you have a JDK installed and set it on IntelliJ IDEA, you just need to click OK. If you don't have a JDK configured, then do it (IntelliJ IDEA will guide you through) and then continue with OK:
Now we can edit and work on our project using all the IntelliJ IDEA features:
You can open all the example code from this book in the same way.