Disable Gradle Deamon

android
gradle
circle.yml

#1

How disable Gradle Deamon?

i use gradle-4.3.1

I use this:

machine:
  environment:
    GRADLE_OPTS: "-Dorg.gradle.daemon=false"

this:

  build:
    branch: /.*/
    commands:
      - ./gradlew testStagingDebugUnitTest --no-daemon
      - (./gradlew assembleDebug --no-daemon):
          timeout: 900

this:
in gradle.properties
org.gradle.daemon=false

TOGETHER!

But every time a see:

21231 1656884 155 /usr/lib/jvm/jdk1.8.0/bin/java -XX:+HeapDumpOnOutOfMemoryError -Xmx2048m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /home/ubuntu/.gradle/wrapper/dists/gradle-4.3.1-all/97nfwr7im082t7xwc6bkwfrg9/gradle-4.3.1/lib/gradle-launcher-4.3.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 4.3.1


#2