Gradle 3.1 run tasks from different sub-modules in parallel


(Sergey Sheypak) #1

Hi, I’m using gradle 3.1 for my multi-module project. I need to start two tasks from different sub-modules in parallel.
Sub-module app-endtoend has to run end-to-end tests locally and it needs running server instances.

  1. app-rest:runPlayBinary will start play app using gralde-play plugin
  2. app-backend:runBackend will start akka application (just call java main class)
    1 and 2 should run in parallel
  3. app-endtoend should start own test task that runs tests.

I was trying to google around, but didn’t find obvious way to run tasks in parallel. What is the right way to do it?