restart not convenient in spring boot gradle projects
When I develop spring boot gradle projects, if I change some code and restart the project, I have to click the Build Project to trigger devtools to restart projects. This will trigger a gradle build which is usually slow when the gradle deamon is not alive. I don't know wiy gradle deamon in my computer lives so short that it has to start every time I build the project!
While in Spring Tool Suite, the same operation is simply easy: just save the file and everything is ok, no deamon starts, no gradle builds, almost immediately. Is there any way to make devel/debug spring boot gradle projects more convenient just like in STS?
I love the great Intellij IDEA, I think it's the best IDE in the world. But the experience is not good. Thank you very much if there is some advice!!
Please sign in to leave a comment.
Do you delegate the build to Gradle? Is it an option not to do so when working with your specific project?
Using Spring Boot run/debug configuration with internal Build not delegated to Gradle will not trigger Gradle build and will be performed much faster.
Yes, thank you very much! I enable the delegate to gradle option accidently. When I disable it ,build process is much faster.
And I got some idea from this post:https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000033250-Developing-Debugging-a-Gradle-built-Spring-Boot-app-in-IntelliJ-IDEA?input_string=spring%20boot%20gradle .Open a terminal and run gradle assemble --continuous , and files are compiles automatically. So this time changing files will trigger relaod and restart well. (But it seems nothing to do with idea)