Gradle integrationTest exits with error code 137

$ ./gradlew --version

Gradle 4.7

Build time: 2018-04-18 09:09:12 UTC
Revision: b9a962bf70638332300e7f810689cb2febbd4a6c

Groovy: 2.4.12
Ant: Apache Ant™ version 1.9.9 compiled on February 2 2017
JVM: 1.8.0_181 (Oracle Corporation 25.181-b13)
OS: Mac OS X 10.14.3 x86_64

I’m aware of this thread Docker Process ‘Gradle Test Executor 8’ finished with non-zero exit value 137.

In my case I’m failing integrationTest target, not the test target, that is

$ ./gradlew :project:integrationTest

I added the test{} options discussed in above thread, but to no avail. So I’m assuming that test is different from integrationTest, and will have different options? Any docs on this? Thanks!