# HG changeset patch # User Oleksandr Gavenko # Date 1544349548 -7200 # Node ID 5bbcbb898ebb0176b28a97e7e719a203c8500780 # Parent cd4554e0150e0488eec7fbd8073b279a91a73000 Debugging/profiling build. diff -r cd4554e0150e -r 5bbcbb898ebb gradle.rst --- 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