Gradle is not sync with IntelliJ IDEA

摘要: Make some changes in the build.gradle file, but the changes never apply or sync to the IDEA (Tested with 2016.3)

Make some changes in the build.gradle file, but the changes never apply or sync to the IDEA (Tested with 2016.3)

1. Using IDEA plugin

build.gradle
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'

2. Make changes and issue the Gradle clean and idea command.

Console
$ gracle clean idea
$ gradle cleanIdea idea
$ gradle cleanIdeaWorkspace idea

All the above Gradle commands do not sync the changes to IDEA.

Note
To fix it, we need to re-import the project as Gradle project, but this is rarely the solution.

Solution

To sync Gradle project changes to IDEA, you need to click on the Gradle Tool Windows “Refresh” button.

To access Gradle Tool Window, in IDEA menu, clicks View -->> Tool Windows -->> Gradle

Clicks on the “Refresh all Gradle projects” button. Done.

References

  1. Gradle Tool Window

上一篇: Spring Boot Test How to disable DEBUG and INFO logs
下一篇: Spring Boot + Spring Data JPA + Java 8 date and time (JSR310)
 评论 ( What Do You Think )
名称
邮箱
网址
评论
验证
   
 

 


  • 微信公众号

  • 我的微信

站点声明:

1、一号门博客CMS,由Python, MySQL, Nginx, Wsgi 强力驱动

2、部分文章或者资源来源于互联网, 有时候很难判断是否侵权, 若有侵权, 请联系邮箱:summer@yihaomen.com, 同时欢迎大家注册用户,主动发布无版权争议的 文章/资源.

3、鄂ICP备14001754号-3, 鄂公网安备 42280202422812号