0

In gradle document, -Pxxx=yyy commandline option is claimed to be able to override build property. So I want to override the property "org.gradle.parallel", which is already defined in the properties file and controls parallel execution.

When I run the following command:

$ ./gradlew test "-Porg.gradle.parallel=false"

The test execution is still parallel. How could this happen?

tribbloid
  • 4,026
  • 14
  • 64
  • 103

1 Answers1

0

The correct command is:

$ ./gradlew test "-Dorg.gradle.parallel=false"

And apparently -P won't apply to built-in properties

tribbloid
  • 4,026
  • 14
  • 64
  • 103