Skip to content

Commit

Permalink
More parallelism (but not under CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst committed May 9, 2024
1 parent e41509c commit 1fd531d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -961,9 +961,7 @@ subprojects {
if (!System.getenv('TF_BUILD')?.equals('True')) {
// Not running under Azure Pipelines CI.

// This uses Gradle's recommended value for `maxParallelForks`:
// https://docs.gradle.org/current/userguide/performance.html#optimize_java_projects
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
maxParallelForks = Runtime.runtime.availableProcessors() ?: 1
} else {
// Running under Azure Pipelines CI.

Expand Down

0 comments on commit 1fd531d

Please sign in to comment.