Matei David
02/28/2025, 4:29 AMVampire
02/28/2025, 11:56 AMMatei David
02/28/2025, 12:34 PMVampire
02/28/2025, 12:51 PMVampire
02/28/2025, 12:51 PMmelix
02/28/2025, 1:55 PMVampire
02/28/2025, 2:06 PMMatei David
02/28/2025, 4:04 PMVampire
02/28/2025, 4:12 PMwhere starting in debug mode and pausing makes the IDE pause the Gradle daemon instead of the service, etc.Iirc you debug both by default, build script and actual project. And iirc there are two thing you could do. You could disable the Gradle debugging, so that only the actual project is debugged. Or you could configure IJ so that you get two debugger windows iirc. But I might also remember wrongly and it just changed at some point how it is displayed without option to configure it. 🤷♂️
Next, I tried to pivot to Application RunConfigs. Surprisingly, the IDE still uses Gradle to spawn each of those services, I don't know why they do that.I told you why and how to change it above. 😉
I suppose that could be used for attaching a debugger. But how could I simply have the logs flow into an IDE window if starting via external scripts.If you log into files, you can configure the run configuration to show these log files. If you only log to stdout, you cannot.
Vampire
02/28/2025, 4:13 PMVampire
02/28/2025, 4:14 PMMatei David
03/01/2025, 7:05 PMVampire
03/02/2025, 1:02 AMSurprisingly, I had better luck with JAR Application RC! Unlike Application RC, the former doesn't spawn a Gradle daemon unless it has a Gradle task as a before hook.How is that surprising? That is just like it is. As I said, the "normal" application also does not spawn any Gradle daemons if you change the mentioned setting. Just normally Gradle knows better than IJ how to build and run things. But if you change that setting, it is like in former times and like when using JAR Application RC.
I also tried "Build and run with: IJ" but that doesn't solve anything, starting 10x services still requires 10x daemonsWell, then you obviously did it wrongly. 🙂 If you for example have a Gradle run configuration to start the service that setting of course is irrelevant.