Gradle : How to disable Gradle Daemon

How to disable Gradle Daemon

There are two ways in which you can disable gradle daemons.

  1. Using Environment Variable
    To disable gradle daemon using env variable you can add a new flag -Dorg.gradle.daemon=false to GRADLE_OPTS env variable.

    GRADLE_OPTS="-Dorg.gradle.daemon=false"
    
  2. Using gradle.properties

    To diable gradle daemon using gradle.properties, you can edit the gradle.properties file that is under the directory <User-Home>/.gradle/. You need to set the following property in the file.

    org.gradle.daemon=false
    

Also Read

No comments :

Post a Comment