Gradle
IntelliJ IDEA supports Gradle. In this section:
- Gradle
- Getting Started with Gradle
- Creating a Gradle Project
- Creating Gradle Project with Grails Integration
- Importing Project from Gradle Model
- Working with Gradle Projects
- Gradle Selective Importing
- Synchronizing Changes in Gradle Project and IntelliJ IDEA Project
- Working with Gradle Tasks in Gradle Tool Window
- Associating Gradle Tasks with Keyboard Shortcuts
Prerequisites
Before you start working with Gradle files, make sure that:
- Gradle is downloaded and installed on your computer.
- IntelliJ IDEA supports Gradle SDK version 1.2. and later.
- Gradle plugin is enabled. The plugin is bundled with IntelliJ IDEA and activated by default. If the plugin is not activated, enable it on the Plugins page of the Settings / Preferences Dialog as described in Enabling and Disabling Plugins.
Gradle Support
Gradle files are marked with icon.
Gradle support includes:
- ability to deduce Gradle home from the environment variables, or configure Gradle home in IntelliJ IDEA.
-
ability to edit
.gradle
files. So doing, the initial coding assistance, provided by IntelliJ IDEA, is the same as for Groovy. - ability to import projects from the existing Gradle models. So doing, IntelliJ IDEA downloads all the necessary dependencies.
- Dedicated Gradle tool window.
- ability to synchronize structures of Gradle and IntelliJ IDEA projects.
- Running Gradle scripts with the Groovy run/debug configuration.
See Also
Language and Framework-Specific Guidelines:
External Links:
Last modified: 13 July 2016