Continuous compilation / testing / etc. features planned for future versions of Gradle. They will be based on existing Gradle daemons.
Update:
Gradle introduced the continuous build feature in version 2.5. The function is still incubated, but we can already use it in our daily development. The continuous build function means that Gradle will not be completed after the task is completed, but will continue to work and look for changes in the files to automatically start tasks automatically. It is great for scripts when we want to re-run a test task while we write our code. Using the continuous build function, we run Gradle once with a test task, and Gradle will automatically recompile the source files and run the tests if the source file changes.
To use the continuous build function, we must use the command line option --continuous or a shorter version of -t . In this case, the Gradle option will start in continuous mode. To stop Gradle, we must use the keyboard shortcut Ctrl+D
http://mrhaki.blogspot.com.au/2015/08/gradle-goodness-using-continuous-build.html
Peter Niederwieser
source share