Nico Schreiner
Nico Schreiner

Reputation: 437

Run the same gradle task multiple times in parallel in IntelliJ

My java project consists of two modules, client and server. I am using IntelliJ and gradle. I want to run one server instance and two client instances in parallel. Until now, I have opened three terminal windows with the commands gradle server:run and 2x gradle client:run and everything worked as expected. Now, I tried the following configuration in IntelliJ:

However, if I run the compound configuration, only one client is executed. The other client prints Executing task 'run'... but does not actually run. Only when I terminate the first client, the other client starts. Is there a way to run both client tasks in parallel?

Upvotes: 3

Views: 1169

Answers (1)

Andrey
Andrey

Reputation: 16391

It is a known issue: IDEA-270755 Gradle Task with 'Allow Parallel Run' option hangs when executed subsequently.

Upvotes: 1

Related Questions