<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gradle installation Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/gradle-installation/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 03 Jan 2020 10:06:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How To Install Gradle on Ubuntu 18.04</title>
		<link>https://www.osradar.com/how-to-install-gradle-on-ubuntu-18-04/</link>
					<comments>https://www.osradar.com/how-to-install-gradle-on-ubuntu-18-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Fri, 03 Jan 2020 10:06:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[gradle]]></category>
		<category><![CDATA[gradle installation]]></category>
		<category><![CDATA[how to install gradle on ubuntu 18.04]]></category>
		<category><![CDATA[ubuntu 18.04]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17072</guid>

					<description><![CDATA[<p>What is Gradle? Gradle is an open source build automation tool used for Java, Groovy and Scala development. Basically, it builds upon the concepts of Apache Ant &#38; Apache Maven. Gradle uses Groovy instead of XML for declaring project configuration. Groovy is a dynamic, object-oriented programming language to define the project configurations. Follow the below [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-gradle-on-ubuntu-18-04/">How To Install Gradle on Ubuntu 18.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3><strong>What is Gradle?</strong></h3>



<p>Gradle is an open source build automation tool used for Java, Groovy and Scala development. Basically, it builds upon the concepts of Apache Ant &amp; Apache Maven. Gradle uses Groovy instead of XML for declaring project configuration. Groovy is a dynamic, object-oriented programming language to define the project configurations. Follow the below steps to cover the Installation of Gradle on Ubuntu 18.04 / 16.04 / Linux Mint 19 &amp; Debian </p>



<h3><strong>Requirements:</strong></h3>



<p>Java JDK or JRE version 7 or above.</p>



<p>Now, proceed to our Installation</p>



<h3><strong>Step 1: Update your system</strong></h3>



<p>Confirm that your system is updated</p>



<pre class="wp-block-verse">sudo apt update</pre>



<p>Install OpenJDK package if you have not already installed by running</p>



<pre class="wp-block-verse">sudo apt install -y openjdk-8-jdk-headless</pre>



<p>Confirm the Installation by</p>



<pre class="wp-block-verse">java -version</pre>



<p><strong>Output:</strong></p>



<pre class="wp-block-verse">sabi@sabi:~$ java -version<br> openjdk version "1.8.0_232"<br> OpenJDK Runtime Environment (build 1.8.0_232-8u232-b09-0ubuntu1~18.04.1-b09)<br> OpenJDK 64-Bit Server VM (build 25.232-b09, mixed mode)</pre>



<p>Install other required packages by typing</p>



<pre class="wp-block-verse">sudo apt install -y wget unzip</pre>



<h3><strong>Step 2: Install Gradle on Ubuntu</strong></h3>



<p>Visit the official site of Gradle to Download the <a href="https://gradle.org/next-steps/?version=6.0.1&amp;format=bin">Gradle</a> Binary-only zip file.</p>



<p>Download the latest version of Gradle v6.0.1</p>



<pre class="wp-block-verse">sabi@sabi:~$ wget https://services.gradle.org/distributions/gradle-6.0.1-bin.zip<br> --2019-12-28 11:43:18--  https://services.gradle.org/distributions/gradle-6.0.1-bin.zip<br> Resolving services.gradle.org (services.gradle.org)… 104.18.191.9, 104.18.190.9, 2606:4700::6812:be09, …<br> Connecting to services.gradle.org (services.gradle.org)|104.18.191.9|:443… connected.<br> HTTP request sent, awaiting response… 301 Moved Permanently<br> Location: https://downloads.gradle-dn.com/distributions/gradle-6.0.1-bin.zip [following]<br> --2019-12-28 11:43:19--  https://downloads.gradle-dn.com/distributions/gradle-6.0.1-bin.zip<br> Resolving downloads.gradle-dn.com (downloads.gradle-dn.com)… 104.17.160.20, 104.17.159.20, 2606:4700::6811:9f14, …<br> Connecting to downloads.gradle-dn.com (downloads.gradle-dn.com)|104.17.160.20|:443… connected.<br> HTTP request sent, awaiting response… 200 OK<br> Length: 95129672 (91M) [application/zip]<br> Saving to: ‘gradle-6.0.1-bin.zip’<br> gradle-6.0.1-bin.zi 100%[==================&gt;]  90.72M  3.15MB/s    in 42s     <br> 2019-12-28 11:44:04 (2.16 MB/s) - ‘gradle-6.0.1-bin.zip’ saved [95129672/95129672]</pre>



<p>Move the downloaded package to working directory </p>



<pre class="wp-block-verse">sabi@sabi:~$ mv gradle-6.0.1-bin.zip /tmp/</pre>



<p>After finishing download, extract the downloaded package in <strong>/opt/gradle</strong> directory using zip command</p>



<pre class="wp-block-verse">unzip gradle-*.zip </pre>



<p>Create a directory called /opt/gradle</p>



<pre class="wp-block-verse"> sudo mkdir /opt/gradle  </pre>



<p>Copy the extracted files to the<strong> /opt/gradle</strong></p>



<pre class="wp-block-verse"> sudo cp -pr gradle-*/* /opt/gradle </pre>



<p>You can confirm the extracted files by listing them in <strong>/opt/gradle</strong> directory.</p>



<pre class="wp-block-verse">sabi@sabi:/tmp$ cd /opt/gradle<br>sabi@sabi:/opt/gradle$ ls<br><strong>bin</strong>  getting-started.html <strong> init.d </strong> <strong>lib</strong>  LICENSE  NOTICE</pre>



<h3><strong>Step 3: Setting Up Environment Variables</strong></h3>



<p>Configure the path environment variable to include the Gradle&#8217;s bin directory. For this create a new file inside the <strong>/etc/profile.d/</strong> directory.</p>



<pre class="wp-block-verse">sudo nano /etc/profile.d/gradle.sh</pre>



<p>Paste the below data into the above file and save it.</p>



<pre class="wp-block-verse">export PATH=$PATH:/opt/gradle/gradle-6.0.1/bin</pre>



<p>Type the given command to make the script executable.</p>



<pre class="wp-block-verse">sudo chmod +x /etc/profile.d/gradle.sh</pre>



<p>Now, load the environment variables for the current session by</p>



<pre class="wp-block-verse">source /etc/profile.d/gradle.sh</pre>



<h3><strong>Step 4: Verifying the Installation</strong></h3>



<p>Check the version of Gradle using <strong>gradle -v</strong> command</p>



<pre class="wp-block-verse">gradle -v</pre>



<p><strong>Output:</strong></p>



<pre class="wp-block-verse">sabi@sabi:/tmp$ gradle -v<br> Welcome to Gradle 6.0.1!<br> Here are the highlights of this release:<br> Substantial improvements in dependency management, including<br> Publishing Gradle Module Metadata in addition to pom.xml<br> Advanced control of transitive versions<br> Support for optional features and dependencies<br> Rules to tweak published metadata<br> Support for Java 13<br> Faster incremental Java and Groovy compilation<br> New Zinc compiler for Scala<br> VS2019 support<br> Support for Gradle Enterprise plugin 3.0 <br> For more details see https://docs.gradle.org/6.0.1/release-notes.html<br> <br> Gradle 6.0.1<br> Build time:   2019-11-18 20:25:01 UTC<br> Revision:     fad121066a68c4701acd362daf4287a7c309a0f5<br> Kotlin:       1.3.50<br> Groovy:       2.5.8<br> Ant:          Apache Ant(TM) version 1.10.7 compiled on September 1 2019<br> JVM:          1.8.0_232 (Private Build 25.232-b09)<br> OS:           Linux 5.0.0-37-generic amd64</pre>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-gradle-on-ubuntu-18-04/">How To Install Gradle on Ubuntu 18.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-gradle-on-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
