Spotbugs sequential execution as gradle task

Hello guys, I have a problem with running spotbugs as sequential gradle task.
I want to mentioned that the project is Java multi module based.
I am running parallel gradle tasks at once(up to 8 like compile,test,…) on different modules and I do not want to change that behavior.
What I want is just one gradle task, in my case that task is spotbugs to run sequentially and the other tasks to run in parallel.
Does gradle provides some option for that?

  • create a shared build service
  • configure it to only allow 1 parallel usage
  • define for all spotbugs tasks that they use that service
1 Like