New Features for Gradle Coming in IntelliJ IDEA 14.1

Gradle becomes more and more popular, and so we’re improving its IntelliJ IDEA integration. If you’ve already tried IntelliJ IDEA 14.1 EAP, you might have noticed the changes in the Gradle tool window.

First of all, in addition to the list of tasks you now can also see project dependencies along with their scope:

gradle_dependencies

Here you can notice that the tasks are now grouped by their type for easier access. To disable grouping, use the Gear icon in the corner.

Another new feature is that now you can tell IntelliJ IDEA to run any task before or after project synchronization, make or rebuild. This may be very useful if you don’t want to run a task every time manually.

gradle_task_context_menu

And what even more exciting is that now you can assign your own shortcuts to any task so that you can invoke it by a simple key press

If you want to run a custom Gradle command, use the new corresponding button on the toolbar:

gradle_run_task

For those who’d like to work with Gradle projects in the offline mode (without an Internet connection), we’ve added the corresponding option to the toolbar.

Last, but not least, improvement is that now you can choose a JVM for running Gradle on behalf of. By default it’s set to the project JDK, but you can change it in Settings:

gradle-jvm

We hope you’ll like the new features. To give them a try, download the latest IntelliJ IDEA 14.1 EAP build.

We look forward to your feedback in our discussion forum and in the issue tracker.

Develop with Pleasure!

About Andrey Cheptsov

Part-time dreamer. JVM/JavaScript geek. IntelliJIDEA Marketing Manager at JetBrains.
This entry was posted in New Features and tagged , , . Bookmark the permalink.

9 Responses to New Features for Gradle Coming in IntelliJ IDEA 14.1

  1. Artiom says:

    This is great! I’m finding IntelliJ really good for Android development and stuff like this makes Gradle easier to work with.

  2. Finally found a reason to update my license from Intellij 12.

  3. Daniel says:

    Is it possible to add better code completion for the Gradle editor? As a newbie in gradle, it’s hard for me to say which piece of code is available at which position.

  4. alex says:

    If I want to have gradle support for my java project using Idea 14.0.3 I follow the advice on this page:

    https://www.jetbrains.com/idea/help/creating-a-gradle-project-.html

    “On the first page of the wizard, in the left-hand pane, select Gradle. In the right-hand part of the page, specify the JDK that you are going to use. Specify the Gradle settings:”

    The wizard is entirely empty. Clicking next lets me specify module name, content root and module file location but that’s it. It goes on to refer to several other options, all missing.

    I have gradle 2.3 installed and the gradle bin folder in the path. The IDEA prerequisites says:

    > IntelliJ IDEA supports Gradle SDK version 1.2. and later.

    Where do I find the Gradle SDK? Does such a thing actually exist?

    • Vladislav Soroka says:

      If you want to create a gradle project from scratch, try :
      for IDEA 14.0.x – File | New Project | Gradle | Next …
      for IDEA 14.1 – File | New | Project | Gradle | Next …
      If you want to import existing project:
      for IDEA 14.0.x – File | Import Project | Select your project build.gradle file | …
      for IDEA 14.1 – File | Open | Select your project build.gradle file | …

      >> I have gradle 2.3 installed and the gradle bin folder in the path.
      You can select you local gradle installation path during the project import, see detail at Import Project from Gradle. Page 1

  5. Artem says:

    Idea 14.x is not working with gradle.
    I’m using fedora and I can not:
    – import project from gradle
    – have sbt and gradle-based modules in one project.

    It’s just crazy.

  6. Alan says:

    My context menu does not have Create…, Run…, or Debug…
    I’m a newbie to Gradle.

  7. shnplr says:

    The dependencies section is great!
    How about option to show which tasks are run by other tasks like gradle tasks –all
    And also if possible to show from which plugin a task originates

Leave a Reply

Your email address will not be published. Required fields are marked *