Skipping tasks and dependencies.
--- a/gradle.rst Mon Feb 20 23:33:57 2017 +0200
+++ b/gradle.rst Thu Feb 23 15:49:54 2017 +0200
@@ -28,6 +28,12 @@
$ gradle :$SUB/$SUBSUB:clean
$ gradle -p $SUB/$SUBSUB clean
+Skip building dependent modules, build just current module::
+
+ $ gradle -a build
+ $ gradle --no-rebuild build
+ $ gradle -a :client:build
+
Creating multilevel project::
$ mkdir $PRJROOT
@@ -46,9 +52,10 @@
https://docs.gradle.org/current/userguide/intro_multi_project_builds.html
http://stackoverflow.com/questions/16976214/gradle-build-only-one-module
-Getting list of supported tasks
-===============================
-::
+Managing tasks
+==============
+
+List tasks::
$ gradle tasks
@@ -64,6 +71,11 @@
$ gradle model
+Skip task during build with ``-x`` option::
+
+ $ gradle -x test build
+ $ gradle -x :core:build :client:build
+
Build sources
=============
::
@@ -79,10 +91,19 @@
Run tests
=========
-::
+
+To run test::
$ gradle test
+To skip tests in build::
+
+ $ gradle -x test build
+
+Better solution involves passing system property with ``build.gradle``::
+
+ test.onlyIf { ! Boolean.getBoolean('skip.tests') }
+
To run tests with additional registered checks::
$ gradle check