Incremental Builds

*.java, compile, *.class, dex, *.dex, /res/*, apkbuilder, app.apk

input files -> task -> output files

$ gradle groovy

FAILURE: Build failed with an exception.

* What went wrong:
Task 'groovy' not found in root project '1.12-Exercise-ExploreIncrementalBuilds'.

* Try:
Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with                                               --info                                                                           or                                                                             --debug                                                                          option to get more log output.


Total time: 6.74 secs

Gradle ClI, files, Environmental variables

creating custom type

class HelloTask extends DefaultTask {
	void doAction(){
		println 'Hello World'

task hello(type: HelloTask)
[vagrant@localhost ud867]$ gradle hello
Hello World


Total time: 6.504 secs