{"id":323,"date":"2015-09-21T09:21:36","date_gmt":"2015-09-21T08:21:36","guid":{"rendered":"https:\/\/mokrzycki.eu\/blog\/?p=323"},"modified":"2018-12-04T15:41:51","modified_gmt":"2018-12-04T14:41:51","slug":"gradlew-how-speed-up-building-green-run","status":"publish","type":"post","link":"https:\/\/mokrzycki.eu\/blog\/2015\/09\/21\/gradlew-how-speed-up-building-green-run\/","title":{"rendered":"Gradlew &#8211; how speed up building (green run)"},"content":{"rendered":"<p>This is my solution how to speed up building gradle processes without running it in console.<\/p>\n<p>There are two steps:<\/p>\n<p>1. adding option to run parallel and offline<\/p>\n<p>2. don&#8217;t allow download new versions using libs (especially when you build few times per minute &#8211; it is not necessary to check every time).<\/p>\n<p>So first go to Android Studio settings page, and then to:<\/p>\n<p>[java]Build, Execution, Deplyoment &amp;amp;amp;gt; Build Tools &amp;amp;amp;gt; Compiler[\/java]<\/p>\n<p>and paste into<\/p>\n<p>[java]Command-line Options[\/java]<\/p>\n<p>this<\/p>\n<p>[java]&#8211;parallel &#8211;offline[\/java]<\/p>\n<p><a href=\"https:\/\/mokrzycki.eu\/blog\/wp-content\/uploads\/2015\/09\/Zrzut-ekranu-2015-09-21-09.42.48.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-324 alignnone\" src=\"https:\/\/mokrzycki.eu\/blog\/wp-content\/uploads\/2015\/09\/Zrzut-ekranu-2015-09-21-09.42.48-449x304.png\" alt=\"Zrzut ekranu 2015-09-21 09.42.48\" width=\"449\" height=\"304\" srcset=\"https:\/\/mokrzycki.eu\/blog\/wp-content\/uploads\/2015\/09\/Zrzut-ekranu-2015-09-21-09.42.48-449x304.png 449w, https:\/\/mokrzycki.eu\/blog\/wp-content\/uploads\/2015\/09\/Zrzut-ekranu-2015-09-21-09.42.48.png 1038w\" sizes=\"(max-width: 449px) 100vw, 449px\" \/><\/a><\/p>\n<p>Next step, go to:<\/p>\n<p>[java]Build, Execution, Deplyoment &amp;amp;amp;gt; Build Tools &amp;amp;amp;gt; Gradle[\/java]<\/p>\n<p>and check &lt;pre&gt;aaa&lt;\/pre&gt;<\/p>\n<p>[java]Offline work[\/java]<\/p>\n<p>option.<br \/>\n<a href=\"https:\/\/mokrzycki.eu\/blog\/wp-content\/uploads\/2015\/09\/Zrzut-ekranu-2015-09-21-09.46.43.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-326 alignnone\" src=\"https:\/\/mokrzycki.eu\/blog\/wp-content\/uploads\/2015\/09\/Zrzut-ekranu-2015-09-21-09.46.43-449x304.png\" alt=\"Zrzut ekranu 2015-09-21 09.46.43\" width=\"449\" height=\"304\" srcset=\"https:\/\/mokrzycki.eu\/blog\/wp-content\/uploads\/2015\/09\/Zrzut-ekranu-2015-09-21-09.46.43-449x304.png 449w, https:\/\/mokrzycki.eu\/blog\/wp-content\/uploads\/2015\/09\/Zrzut-ekranu-2015-09-21-09.46.43.png 1038w\" sizes=\"(max-width: 449px) 100vw, 449px\" \/><\/a><\/p>\n<p>Difference will be\u00a0 noticeable.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is my solution how to speed up building gradle processes without running it in&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[500],"tags":[5,228,225,226,230,227,229,181],"_links":{"self":[{"href":"https:\/\/mokrzycki.eu\/blog\/wp-json\/wp\/v2\/posts\/323"}],"collection":[{"href":"https:\/\/mokrzycki.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mokrzycki.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mokrzycki.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mokrzycki.eu\/blog\/wp-json\/wp\/v2\/comments?post=323"}],"version-history":[{"count":8,"href":"https:\/\/mokrzycki.eu\/blog\/wp-json\/wp\/v2\/posts\/323\/revisions"}],"predecessor-version":[{"id":333,"href":"https:\/\/mokrzycki.eu\/blog\/wp-json\/wp\/v2\/posts\/323\/revisions\/333"}],"wp:attachment":[{"href":"https:\/\/mokrzycki.eu\/blog\/wp-json\/wp\/v2\/media?parent=323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mokrzycki.eu\/blog\/wp-json\/wp\/v2\/categories?post=323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mokrzycki.eu\/blog\/wp-json\/wp\/v2\/tags?post=323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}