Gradle + Spring Boot, different run behaviour since 2023
Since the first 2023 update of IntelliJ, when I run a spring boot configuration, it immediately starts but according to the console it starts with
Executing ':myproject:MyApplication.main()'...
Which then triggers a gradle build, which then runs all required tasks.
Before this update, the gradle build was triggered independently of the run "execution". This had two benefits, (1) the build was using the build-window (which is more intuitive to look at and you can easier go back and see which gradle tasks were performed and which were UP-TO-DATE). And (2) when I run multiple configurations, they don't interfere with each other. Right now, starting two builds at the same time leads in one of them having trouble getting the right .class files, as (it seems like) the compiler of the other one overwrites or clears them.
Since this seems to be gradle related, choosing "Don't build" in the run configuration does not help.
Do you have an idea how to get either the previous behaviour back, or how to solve the parallel-compile-problems?
请先登录再写评论。
Please try disabling it.
I am using InteliJ 2023.1 Ultimate under OSX/arm. Under "Advanced Settings" I don't see something with Spring Boot. I have `Languages & Frameworks | Spring | Spring Boot` and there I have three options:
- Show notification panel in configuration metadata files
- Refresh health in the Acutator tab every [select field] sec.
- Create run configuration automatically
I can set `Build, Execution, Deployment | Build Tools | Gradle` to build and run using IntelliJ Idea (instead of Gradle), that helps, however, I want Gradle to build the piece.
Also, I got now the option to update to the recent IntelliJ2023.1.1, and here I have the option you mentioned. It was already disabled by default, but thanks for the heads up! Now it is working as before again.