gradle.rst
changeset 2293 5bbcbb898ebb
parent 2290 3b2866390fb7
child 2294 6d97c0b855ef
equal deleted inserted replaced
2292:cd4554e0150e 2293:5bbcbb898ebb
   119   include 'lvl1/lvl2'
   119   include 'lvl1/lvl2'
   120 
   120 
   121 https://docs.gradle.org/current/userguide/intro_multi_project_builds.html
   121 https://docs.gradle.org/current/userguide/intro_multi_project_builds.html
   122 http://stackoverflow.com/questions/16976214/gradle-build-only-one-module
   122 http://stackoverflow.com/questions/16976214/gradle-build-only-one-module
   123 
   123 
       
   124 Debugging build
       
   125 ===============
       
   126 
       
   127 Enable better logging::
       
   128 
       
   129   $ gradle -i ...
       
   130   $ gradle --info ...
       
   131   $ gradle -d ...
       
   132   $ gradle --debug ...
       
   133 
       
   134 Enable stacktraces::
       
   135 
       
   136   $ gradle --stacktrace
       
   137 
       
   138 Profiling build
       
   139 ===============
       
   140 ::
       
   141 
       
   142    $ gradle --profile
       
   143 
       
   144 To use build scans accept EULA::
       
   145 
       
   146   buildScan {
       
   147     termsOfServiceUrl = 'https://gradle.com/terms-of-service'
       
   148     termsOfServiceAgree = 'yes'
       
   149   }
       
   150 
       
   151 then run::
       
   152 
       
   153   $ gradle --scan
       
   154 
   124 Running completely isolated build
   155 Running completely isolated build
   125 =================================
   156 =================================
   126 
   157 
   127 To avoid using global cache and for really clean build use::
   158 To avoid using global cache and for really clean build use::
   128 
   159 
       
   160   $ gradle --no-daemon -g _tmp
   129   $ gradle --no-daemon --gradle-user-home ./.gradle.local
   161   $ gradle --no-daemon --gradle-user-home ./.gradle.local
   130 
   162 
   131 Build sources
   163 Build sources
   132 =============
   164 =============
   133 ::
   165 ::