Clang jobs in gradle-experimental ndk build

I am trying to build openframeworks (c++) on android using gradle-experimental and it’s ndk build implementation. I managed to set it up. The problem is that gradle runs multiple clang instances in parallel (8, each with different cpp file), which wuld be nice but it consumes too much memory. I can not fit all 8 instances of clang into my 4GB memory so it freezes the whole computer. Is there a way to reduce the number of parallel compiler instances to 1? I was unable to find API references for experimental gradle plugin. I know it was discontinued but I still find if useful until the native ndk implementation gets it into the main release.

Thank you for advices,

Ok, I just figured it out. See here:

It is te max-workers parameter.