changeset 2293:5bbcbb898ebb

Debugging/profiling build.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Sun, 09 Dec 2018 11:59:08 +0200
parents cd4554e0150e
children 6d97c0b855ef
files gradle.rst
diffstat 1 files changed, 32 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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