spring boot web app started successfully, but gradle still building prj in the background non-stop
Answered
Before updating gradle and java version, when a simple web app started successfully, the IDE just showed the log telling me the app started, but now after the app successfully started, and working fine, IDE still shows this left panel indicating gradle is keep running in the background.
It didn't show any useful options even I right clicked on it.

When I hit the stop button, now the IDE shows this, instead of the usual line “Process finished with exit code 130”
I really want to know what have gone wrong ?? This is a really brand new proj just imported using Spring Initializr.
Anyone met the same or similar situation before ? (T_T)/~~~

Please sign in to leave a comment.
Hello,
How did you start the application? Could you please attach screenshot with used run configuration?
Looks like Gradle task was executed instead of Spring Boot run configuration.
Hello, thank you for responding. I just click the green triangle button to start the main() as usual
Here is my run configuration, I didn't touch it at all, all default
You saying “Looks like Gradle task was executed instead of Spring Boot run configuration” made an idea come to me.
So I went to setting below and found that build&run are using “Gradle” as default, I changed it to “IntelliJ”, and ran the app again, then it was just like the old times.
Did IntelliJ changed this default option a few years ago ? Or is it always Gradle default for gradle as build tool ?
But I mean even though IntelliJ made such update, it seems so buggy.
Why would Gradle already successfully started my web app, but the IDE shows it still constantly building, and when I click the stop button, the IDE threw all the error messages to me. I thought I have done something wrong, while the settings are default and the project is new without any further configuration
Hello,
Seems your project wasn't detected as Spring Boot project. Please check that “Spring Boot” plugin is enabled in “Settings | Plugins”.
Generally, dedicated Spring Boot run configuration should be created when you run Spring Boot project.
In your case, IDE used common “Application” run configuration, so it was started via Gradle (yes, gradle runner is used by default in Gradle projects). It was shown like “running” because actually gradle process was running. And that process started Spring Boot application inside.
Could you please share your project, so we could check why it's not detected as Spring Boot project? You may share large files via https://uploads.jetbrains.com/ form. Please provide uploadID afterwards.
Also, you may try to remove IDE related data (.iml file and .idea folder) from project and reimport it again.
Hello, thank you.
My upload ID is 2025_01_24_aj9ei6Ds9Q5tsLkcZmDz9n
And I wonder did you see my 1st response up there, I posted the capture of the IDE project run configuration , but it seems the response is still pending approval so it did not appear in the post. But my 2nd response appeared, weird.
So I just paste my IDE project run configuration here again
And I checked Settings | Plugins, it didn't have any spring boot plugin enabled, while I did see there are some spring boot plugins in the marketplace, and the official one is only available in IDE ultimate version.
Again, thank you for helping, at least now I know there are build run options for gradle
There is no “Spring Boot” support in Community edition. So, “Run using Intellij”is the only way to have desired behaviour.
I see, at least now I know where the problem lies, thank you