{"id":17025,"date":"2015-01-28T00:07:05","date_gmt":"2015-01-27T18:37:05","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=17025"},"modified":"2017-11-22T15:58:38","modified_gmt":"2017-11-22T10:28:38","slug":"gradle-installation-in-ubuntu","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/gradle-installation-in-ubuntu\/","title":{"rendered":"Gradle installation in Ubuntu"},"content":{"rendered":"<p>In this post we are going to learn about Gradle installation in Ubuntu 14.04.<\/p>\n<p>1. Open terminal and execute this command to install Gradle<br \/>\n<code>$ sudo apt-get install gradle<\/code><\/p>\n<p>This command will set the path variables automatically. And, you are ready to work with Gradle.<\/p>\n<p>code<\/p>\n<p>2. Download Gradle from the\u00a0official website and extract it in a directory. In my case it is<br \/>\n<code>\/home\/krishna\/Documents\/gradle_dev\/gradle-2.2.1<\/code><\/p>\n<p>Set environment path variable GRADLE_HOME. To set this path open terminal and open \/etc\/profile<br \/>\n<code>$ sudo gedit \/etc\/profile<\/code><\/p>\n<p>This will open profile file in gedit. Add following lines after the last line<\/p>\n<pre>GRADLE_HOME=\/home\/krishna\/Documents\/gradle_dev\/gradle-2.2.1\/\r\nPATH=$PATH:$GRADLE_HOME\/bin\r\nexport GRADLE_HOME\r\nexport PATH<\/pre>\n<p>Replace GRADLE_HOME path with your Gradle installation path.<\/p>\n<p>Save file and close gedit. Restart the system. Open terminal and type<br \/>\n<code>$ gradle -v<\/code><\/p>\n<p>the output would be similar to this<\/p>\n<pre>------------------------------------------------------------\r\nGradle 2.2.1\r\n------------------------------------------------------------\r\n\r\nBuild time:   2014-11-24 09:45:35 UTC\r\nBuild number: none\r\nRevision:     6fcb59c06f43a4e6b1bcb401f7686a8601a1fb4a\r\n\r\nGroovy:       2.3.6\r\nAnt:          Apache Ant(TM) version 1.9.3 compiled on December 23 2013\r\nJVM:          1.8.0_31 (Oracle Corporation 25.31-b07)\r\nOS:           Linux 3.13.0-44-generic amd64<\/pre>\n<p>Go through our innovative <a title=\"product engineering solutions\" href=\"http:\/\/www.tothenew.com\/product-engineering\">product engineering solutions<\/a> and services.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post we are going to learn about Gradle installation in Ubuntu 14.04. 1. Open terminal and execute this command to install Gradle $ sudo apt-get install gradle This command will set the path variables automatically. And, you are ready to work with Gradle. code 2. Download Gradle from the\u00a0official website and extract it [&hellip;]<\/p>\n","protected":false},"author":133,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":11},"categories":[1],"tags":[1511,1612,8],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/17025"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/133"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=17025"}],"version-history":[{"count":1,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/17025\/revisions"}],"predecessor-version":[{"id":52468,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/17025\/revisions\/52468"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=17025"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=17025"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=17025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}