DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
Building Scalable Real-Time Apps with AstraDB and Vaadin
Register Now

Trending

  • Automated Multi-Repo IBM App Connect Enterprise BAR Builds
  • Turbocharge Ab Initio ETL Pipelines: Simple Tweaks for Maximum Performance Boost
  • Build a Simple Chat Server With gRPC in .Net Core
  • How To Check IP Addresses for Known Threats and Tor Exit Node Servers in Java

Trending

  • Automated Multi-Repo IBM App Connect Enterprise BAR Builds
  • Turbocharge Ab Initio ETL Pipelines: Simple Tweaks for Maximum Performance Boost
  • Build a Simple Chat Server With gRPC in .Net Core
  • How To Check IP Addresses for Known Threats and Tor Exit Node Servers in Java
  1. DZone
  2. Coding
  3. Tools
  4. Gradle Goodness: Create a Shortcut Key to Refresh Gradle Projects in IntelliJ IDEA

Gradle Goodness: Create a Shortcut Key to Refresh Gradle Projects in IntelliJ IDEA

Let's see how to map IntelliJ IDEA's ''Refresh All Gradle Projects'' button to a keyboard shortcut so your hands can remain on the keyboard.

Hubert Klein Ikkink user avatar by
Hubert Klein Ikkink
·
Mar. 09, 17 · Tutorial
Like (0)
Save
Tweet
Share
10.14K Views

Join the DZone community and get the full member experience.

Join For Free

We can open a Gradle project in IntelliJ IDEA and get support for Gradle inside IntelliJ. Sometimes, we need to refresh the project in IntelliJ IDEA, for example when we add a new dependency or plugin in our Gradle build file. We need to refresh the Gradle project so IntelliJ IDEA can work with the changes. The Gradle tool window has an icon to Refresh all Gradle projects. But this means a mouse action and we want to have a shortcut key so we can leave our hands on the keyboard.

The action Refresh all Gradle projects is actually the action Refresh all external projects. We can add keyboard shortcut key via Preferences | Keymap. We use the search box to search for Refresh all external projects.

Image title

We can right click on the found action and select Add Keyboard Shortcut to define a new shortcut key:

Image title

Now we simply use the shortcut to refresh our Gradle project when we have made a change in the Gradle build file that IntelliJ IDEA should know about.

Besides having the action in the Gradle tool window, we can also add it to the main toolbar. We right click on the main toolbar and select the option Customize Menus and Toolbars.... We can add the action Refresh all external projects here to the toolbar:

Image title


Written with Gradle 3.4.1 and IntelliJ IDEA 2016.3.4.



intellij Gradle

Published at DZone with permission of Hubert Klein Ikkink, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Trending

  • Automated Multi-Repo IBM App Connect Enterprise BAR Builds
  • Turbocharge Ab Initio ETL Pipelines: Simple Tweaks for Maximum Performance Boost
  • Build a Simple Chat Server With gRPC in .Net Core
  • How To Check IP Addresses for Known Threats and Tor Exit Node Servers in Java

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com

Let's be friends: