Gradle and IntelliJ IDEA project settings synchronization
We have an excellent news for the Gradle fans today. IntelliJ IDEA 11.1 introduces new features for Gradle integration:
- ability to compare project structure defined by Gradle and your favorite IDE;
- ability to solve project structure differences (to some extent);
How does it work? Very simple, a dedicated Gradle window which does everything for you.
First, you need to instruct the IDE what Gradle project you want to sync with (it is linked automatically in case of importing project from Gradle):
Then you get a tree-view that aggregates IntelliJ IDEA and Gradle project structure. It provides a fine-grained visual information for the differences:
Of course it’s possible to customize some representation settings:
That’s cool, but what can we do with that? Currently the Gradle integration offers two actions (more will come later):
- import Gradle local changes into the IDE;
- show conflicting settings;
The actions may be performed via node context menu.
It’s possible to filter the tree by Change Type. For example you can observe all local changes of Gradle settings:
The toolbar also contains Refresh action. It builds Gradle-defined project structure information, compares with the one configured at the IDE and shows the changes in the tree.
There is also a bunch of other small features like ability to open target project in the editor , automatic Groovy configuration for the projects imported from Gradle, preserving expand/collapse state for the project structure tree nodes, transitive import, etc.
That’s all for today but we’re going to improve the integration further. Looking forward to hear your feedback, cheers.
New features are already available in the latest IntelliJ IDEA 11.1 EAP build. Don’t forget to submit feature requests and bug reports to the tracker.
Subscribe to Blog updates
Thanks, we've got you!
The What, Why, and How of JPA Buddy in IntelliJ IDEA
Master JPA entity management with JPA Buddy in IntelliJ IDEA! Our latest article shows you how to simplify your workflow and reduce boilerplate code.
The Best of IntelliJ IDEA’s HTTP Client
In today's fast-paced tech world, easy and efficient management of web services and APIs is crucial. That's where IntelliJ IDEA's HTTP Client steps in, turning complex HTTP requests into a walk in the park. The HTTP Client is a feature-rich, text-based tool in IntelliJ IDEA Ultimate. It seamlessl…
Import Postman Collections to the HTTP Client
We know that many of you use Postman collections and want to stay in the flow while working with them. This means staying inside IntelliJ IDEA and not switching to a different app. Great news! You can now effortlessly transform Postman collections into .http and use them in the HTTP Client …
What’s New in IntelliJ IDEA 2023.1 for Spring Developers
The IntelliJ IDEA 2023.1 release came packed with updates for Spring. This blog post will highlight the most noticeable changes, including full support for Lombok, a reworked Spring tool window, navigation for Spring Security rules, Spring Security 6 support, and more. Remember that these featur…