Debugging/profiling build.
--- a/gradle.rst Sun Dec 09 11:58:37 2018 +0200
+++ b/gradle.rst Sun Dec 09 11:59:08 2018 +0200
@@ -121,11 +121,43 @@
https://docs.gradle.org/current/userguide/intro_multi_project_builds.html
http://stackoverflow.com/questions/16976214/gradle-build-only-one-module
+Debugging build
+===============
+
+Enable better logging::
+
+ $ gradle -i ...
+ $ gradle --info ...
+ $ gradle -d ...
+ $ gradle --debug ...
+
+Enable stacktraces::
+
+ $ gradle --stacktrace
+
+Profiling build
+===============
+::
+
+ $ gradle --profile
+
+To use build scans accept EULA::
+
+ buildScan {
+ termsOfServiceUrl = 'https://gradle.com/terms-of-service'
+ termsOfServiceAgree = 'yes'
+ }
+
+then run::
+
+ $ gradle --scan
+
Running completely isolated build
=================================
To avoid using global cache and for really clean build use::
+ $ gradle --no-daemon -g _tmp
$ gradle --no-daemon --gradle-user-home ./.gradle.local
Build sources