gradle-node-plugin icon indicating copy to clipboard operation
gradle-node-plugin copied to clipboard

Parallell execution of task in same node project?

Open Lucas3oo opened this issue 3 years ago • 4 comments

Hi

It is possible to configure a task for a project to run in parallell ?

Say for instance if I have a task that run "ng lint" and one task that runs "ng extract-i18n" ? (Via npm)

Best regards Lucas

Lucas3oo avatar Apr 14 '22 07:04 Lucas3oo

Hi Lucas,

Unfortunately this is a current limitation in Gradle

deepy avatar Apr 14 '22 09:04 deepy

This can be achieved with worker-api. But this will require to restructure code in all tasks (extract all logic to separate worker classes, etc). @deepy, are you interested in such PR?

belovaf avatar May 06 '22 16:05 belovaf

@belovaf sure, that'd be great!

There's a branch called test-sbs where I've just been playing around with doing slightly related work (the idea being to enable something like the Toolchains for JVM projects) but be warned that it started out as exploratory testing to see how much work it would be and where the project would fight me :-)

I'll commit and push my local changes as soon as I fix any tests that are currently broken, although now that I think about it, I don't think there was anything of interest in there

deepy avatar May 06 '22 17:05 deepy

Oh and if it requires dropping support for Gradle versions lower than 6.1 it'll have to wait until after the next release, but that's already being planned

deepy avatar May 06 '22 17:05 deepy