That's a rather complex topic.
I tried to explain it further in a comment on that issue.
Put short, if the current process is compatible enough to run the build, and the option is used, no daemon will be started.
The question is, why do you need it, what is your problem with the single-use daemon, or even with a long-lived daemon?
r
Ryan Colombo
06/28/2023, 12:41 AM
it's a legacy CI pipeline which has used --no-daemon since before using a daemon was the recommendation.
The daemon fails to terminate when using the artifactory Jenkins plugin despite success, so the build hangs. Solving that issue has proven very complex but would be the right way to do things, I was hoping to make as minimal changes as possible during the gradle 7-> 8 update.
v
Vampire
06/28/2023, 12:42 AM
You probably just need to add the instrumentation agent argument
Vampire
06/28/2023, 12:43 AM
But maybe better fix that hang 😄
r
Ryan Colombo
06/28/2023, 1:09 AM
yeah adding that argument works it just felt like I was going down the wrong path
v
Vampire
06/28/2023, 1:10 AM
Yeah, no.
If you want the build to run in the current process, it has to be compatible.
And that means either the agent must be there, or disabled and the latter is a very bad idea.