What are the advantages of using a build service v...
# community-support
m
What are the advantages of using a build service vs a static instance?
v
Scope
Build service is scoped to once execution of one build
👍 1
Static state survives in the daemon JVM and can even influence builds of totally different projects run in the same daemon
This caused many serious problems with Spotbugs which used to be called in-process, and heavily overuses static state.
So in short, never use static state, but at most for constant values.
m
👍 I see, thanks!
👌 1