Run tests.
--- a/gradle.rst Tue Feb 14 12:38:27 2017 +0200
+++ b/gradle.rst Tue Feb 14 13:07:46 2017 +0200
@@ -31,6 +31,10 @@
$ gradle -q help --task build
+Similar but to each task::
+
+ $ gradle model
+
Build sources
=============
::
@@ -44,6 +48,22 @@
$ gradle run
+Run tests
+=========
+::
+
+ $ gradle test
+
+To run tests with additional registered checks::
+
+ $ gradle check
+
+.. note::
+ ``--rerun-tasks`` option *specifies that any task optimization is ignored*.
+ In that way you may rerun tests even if there are no changed files::
+
+ $ gradle test --rerun-tasks
+
Stopping server
===============
::
@@ -53,9 +73,10 @@
List project dependencies
=========================
-List of project execution dependencies::
+List of project execution dependencies (it also download dependencies)::
$ gradle dependencies
+ $ gradle dependencies --configuration compile
$ gradle dependencies -p $SUBPROJ
$ gradle :$SUBPROJ:dependencies
$ gradle :$SUBPROJ:dependencies --configuration testCompile
@@ -66,6 +87,20 @@
$ gradle buildEnvironment -p $SUBPROJ
$ gradle :$SUBPROJ:buildEnvironment
+Paths to dependencies can be printed via task::
+
+ task printDepPaths {
+ doLast { configurations.runtime.each { println it } }
+ }
+
+All dependencies can be copied to single directory via task::
+
+ task copyRuntimeLibs(type: Copy) {
+ into "lib"
+ from configurations.runtime
+ // from configurations.testRuntime - configurations.runtime
+ }
+
List project properties
=======================
::