{"id":30,"date":"2022-04-10T06:02:12","date_gmt":"2025-10-21T03:51:37","guid":{"rendered":""},"modified":"2025-02-02T00:46:14","modified_gmt":"2025-02-01T23:46:14","slug":"how-to-install-gradle-on-linux-debian-11","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/how-to-install-gradle-on-linux-debian-11\/","title":{"rendered":"Linux VPS &#038; VPS Windows Setup Guide | NetCloud24 Gradle on Linux Debian 11"},"content":{"rendered":"<article>\n<h1>How to Install Gradle on Debian 11<\/h1>\n<div class=\"contributeEdit\" style=\"float: right; width: 450px; max-width: 100%;\">\n<div id=\"tocContainer\">\n<h3>On this page<\/h3>\n<ol class=\"toc\">\n<li><a href=\"#prerequisites\">Prerequisites<\/a><\/li>\n<li><a href=\"#updating-your-system\">Updating Your System<\/a><\/li>\n<li><a href=\"#installing-java\">Installing Java<\/a><\/li>\n<li><a href=\"#installing-gradle\">Installing Gradle<\/a><\/li>\n<li><a href=\"#conclusion\">Conclusion<\/a><\/li>\n<\/ol>\n<\/div>\n<\/div>\n<p>Gradle is a general-purpose build tool with a focus on Java projects. It is built in a Groovy or Kotlin domain-specific language but can be used to support other languages also.<span id=\"ezoic-pub-ad-placeholder-106\" class=\"ezoic-adpicker-ad\"><\/span><span id=\"div-gpt-ad-howtoforge_com-box-3-0\" class=\"ezoic-ad\" style=\"position: relative; z-index: 0; display: inline-block; padding: 0; min-height: 90px; min-width: 728px;\"><\/span> The following are some of the main features of this build automation tool.<span id=\"ezoic-pub-ad-placeholder-121\" class=\"ezoic-adpicker-ad\"><\/span><span id=\"div-gpt-ad-howtoforge_com-medrectangle-3-0\" class=\"ezoic-ad\" style=\"position: relative; z-index: 0; display: inline-block; padding: 0; min-height: 90px; min-width: 728px;\"><\/span><\/p>\n<ul>\n<li>Its multi-platform, meaning you can run it on any platform regardless of the OS e.g. Windows, Linux, or Mac OS X.<\/li>\n<li>It supports incremental builds by determining which outputs are out of date and building only those inputs that are out of date or new.<\/li>\n<li>It has support for build scans which means it can show you what your builds dependencies are so that you can only depend on the ones you need for your project.<\/li>\n<li>It has the ability to build in parallel by splitting different tasks into different parts and then running them simultaneously. For example, you can process source files in one task while processed resources are moved through another task for processing in a separate thread.<\/li>\n<\/ul>\n<p>This article describes how to install Gradle build tool on Debian. This guide should work on other Debian-based systems as well, as long as the version of Gradle being installed is above 3.0.<\/p>\n<div style=\"width: 336px; float: left; margin: 10px 15px 10px 0; background-color: #fff;\">\u00a0<\/div>\n<h2 id=\"prerequisites\">Prerequisites<\/h2>\n<ul>\n<li>The following are the minimum prerequisites for this article that you need to have installed on your machine.<\/li>\n<li>A non-root user with sudo privileges is set up on your machine.<\/li>\n<li>At least 1 GB of RAM is available in order to successfully install Gradle.<\/li>\n<\/ul>\n<h2 id=\"updating-your-system\">Updating Your System<\/h2>\n<p>For this article to work successfully on your machine, you need to ensure that all the packages on your system are up-to-date. To do this, run the following command:<\/p>\n<pre class=\"command\">sudo apt update &amp;&amp; sudo apt upgrade -y<\/pre>\n<p>You should see a log showing what packages have been upgraded and also which ones were installed if anything new was available.<\/p>\n<h2 id=\"installing-java\">Installing Java<\/h2>\n<p>Gradle requires that the Java Development Kit (JDK) be installed on your machine. You can check whether Java is installed on your machine by running the following command:<span id=\"ezoic-pub-ad-placeholder-130\" class=\"ezoic-adpicker-ad\"><\/span><\/p>\n<div id=\"howtoforge_com-link-h-large-1\" class=\"ezo_link_unit_a\">\u00a0<\/div>\n<p>\u00a0<\/p>\n<pre class=\"command\">java -version<\/pre>\n<p>If JDK is not found on your machine, install Java on Debian run the following command:<\/p>\n<pre class=\"command\">sudo apt install default-jdk -y<\/pre>\n<p>The entire process will take a few minutes to complete. You can verify that Java is installed on Debian 11 by checking the version of the java.<\/p>\n<pre class=\"command\">java -version<\/pre>\n<p>You should see a log showing the version of Java you&#8217;ve just installed and also its Runtime Environment (JRE). <span id=\"ezoic-pub-ad-placeholder-108\" class=\"ezoic-adpicker-ad\"><\/span><span id=\"div-gpt-ad-howtoforge_com-medrectangle-4-0\" class=\"ezoic-ad\" style=\"position: relative; z-index: 0; display: inline-block; padding: 0; width: 100%; max-width: 1200px; margin-left: auto!important; margin-right: auto!important; min-height: 400px; min-width: 580px;\"><\/span><\/p>\n<h2 id=\"installing-gradle\">Installing Gradle<\/h2>\n<p>We will create the <em>\/opt\/gradle<\/em> directory to hold the Gradle installation files. Then you move into the directory and download the Gradle files using the wget command. And extract the zip file using the unzip command.<\/p>\n<pre class=\"command\">sudo mkdir \/opt\/gradle<\/pre>\n<pre class=\"command\">cd \/opt\/gradle<\/pre>\n<pre class=\"command\">wget https:\/\/downloads.gradle-dn.com\/distributions\/gradle-7.2-bin.zip<\/pre>\n<pre class=\"command\">unzip gradle-7.2-bin.zip<\/pre>\n<p>To verify that Gradle is successfully extracted on Debian 11, run the following command:<\/p>\n<pre class=\"command\">ls \/opt\/gradle\/<\/pre>\n<p>\u00a0 Now, you will need to set up the environment using the PATH environment variable. To do this, we will add the Gradle bin directory to <em>\/etc\/profile.d<\/em> by running the following command:<\/p>\n<pre class=\"command\">echo \"export PATH=\/opt\/gradle\/bin:${PATH}\" | sudo tee \/etc\/profile.d\/gradle.sh<\/pre>\n<p>Make the gradle.sh file executable by running the following command:<span id=\"ezoic-pub-ad-placeholder-110\" class=\"ezoic-adpicker-ad\"><\/span><span id=\"div-gpt-ad-howtoforge_com-box-4-0\" class=\"ezoic-ad\" style=\"position: relative; z-index: 0; display: inline-block; padding: 0; width: 100%; max-width: 1200px; margin-left: auto!important; margin-right: auto!important; min-height: 90px; min-width: 728px;\"><\/span><\/p>\n<pre class=\"command\">sudo chmod +x \/etc\/profile.d\/gradle.sh<\/pre>\n<p>Next, load the environment variables using the source command :<\/p>\n<pre class=\"command\">source \/etc\/profile.d\/gradle.sh<\/pre>\n<p>Now, whenever you log in to your system, Gradle should already be added to the PATH environment variable and thus available for you to use. Once the installation is done. You can verify the Gradle installation by running the following command:<\/p>\n<pre class=\"command\">gradle -v<\/pre>\n<p>This command will give you an output similar to this one: <span id=\"ezoic-pub-ad-placeholder-111\" class=\"ezoic-adpicker-ad\"><\/span> Congratulations! Gradle has now been successfully installed on your machine.<\/p>\n<h2 id=\"conclusion\">Conclusion<\/h2>\n<p><a href=\"https:\/\/netcloud24.com?language=english&amp;currency=4\">Windows VPS Server<\/a><\/p>\n<\/article>\n<p><a href=\"https:\/\/de.netcloud24.com\/\" target=\"_blank\">Windows VPS Deutschland<\/a><\/p>\n<p><a href=\"https:\/\/es.netcloud24.com\/\" target=\"_blank\">Windows VPS Espa\u00f1a<\/a><\/p>\n<p><a href=\"https:\/\/nl.netcloud24.com\/\" target=\"_blank\">Windows VPS Nederland<\/a><\/p>\n<p><a href=\"https:\/\/it.netcloud24.com\/\" target=\"_blank\">Windows VPS Italia<\/a><\/p>\n<p><a href=\"https:\/\/pt.netcloud24.com\/\" target=\"_blank\">Windows VPS Portugal<\/a><\/p>\n<p><a href=\"https:\/\/it.netcloud24.com\/\" target=\"_blank\">VPS Windows Italia<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS Sverige<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS Norge<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS T\u00fcrkiye<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows RDS (Remote Desktop Services)<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS<\/a><\/p>\n<div class=\"post-author-box\" style=\"border-top:1px solid #ddd;margin-top:20px;padding-top:15px;\">\n<p><strong>Author:<\/strong> \u0141ukasz Bodziony<\/p>\n<p><strong>Website:<\/strong> <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a><\/p>\n<p><em>\u0141ukasz Bodziony is the CEO and founder of <a href=\"https:\/\/netcloud24.com\" target=\"_blank\" rel=\"dofollow\">NETCLOUD24<\/a>, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance <strong>Windows VPS<\/strong> and <strong>Remote Desktop Services (RDS)<\/strong> solutions to clients across Europe, North America, and beyond.<\/em><\/p>\n<p><em>His expertise covers a wide range of technologies, including <strong>Microsoft Azure<\/strong>, <strong>Proxmox VE<\/strong>, <strong>Amazon Web Services (AWS)<\/strong>, and numerous other virtualization and cloud platforms.<\/em><\/p>\n<p><em>Beyond running his hosting business, \u0141ukasz also provides <strong>professional paid server configuration and optimization services<\/strong> for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.<\/em><\/p>\n<p><em>If you are interested in working with him or need expert assistance with your hosting, cloud environment, or server setup, feel free to reach out via <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a>.<\/em><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>How to Install Gradle on Debian 11 On this page Prerequisites Updating Your System Installing Java Installing Gradle Conclusion Gradle is a general-purpose build tool with a focus\u2026<\/p>\n","protected":false},"author":1,"featured_media":3421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[],"tags":[14,12,11,23,20,21,22,17,7,8,6,10,18,19,15,24,16,5,13,9],"class_list":["post-30","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-cheapvps","tag-cloudvps","tag-hostingvps","tag-rds","tag-rdscal","tag-remotedesktop","tag-remotedesktopvps","tag-servervps","tag-ukvps","tag-virtualserver","tag-vpshosting","tag-vpsserver","tag-vpssolutions","tag-vpswindows","tag-vpswithwindows","tag-windowsrds","tag-windowsserver","tag-windowsvps","tag-windowsvpshosting","tag-windowsvpsuk"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/30","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=30"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/30\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media\/3421"}],"wp:attachment":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}