Gradle Notes


Enable gradle daemon

In the file ~/.gradle/gradle.properties add:

org.gradle.daemon=true

List available tasks

$ gradle tasks

Build sub-module only

$ gradle :submodule:build

or:

$ gradle build -p submodule

or:

cd into the submodule dir and do a build.

Skip Tests

$ gradle build -x test

Testing specific file(s)

$ gradle test --tests '*MyTest'

Specific method:

$ gradle test --tests '*MyTest.someMethod'
Posted on October 30, 2015 08:45 AM by Subhash Chandran
gradle java build