Gradle is a free and open source build toolset system based on the concepts of Apache Ant and Apache Maven. Gradle provides powerful support for multi projects builds. It also provides full support for your existing Maven or Ivy repository infrastructure. Some of it's features are listed below:
Declarative builds and build-by-convention
Structure your build
Language for dependency based programming
Ease of migration
Gradle is the first build integration tool
Many ways to manage your dependencies
The Gradle wrapper
You'll need a CentOS 7 server and root user privileges over it to follow this tutorial to install Gradle oyour server. you can switch from non root user to root user using sudo -i command.
Update the System
Before going through the installation process it is highly recommended to update your system first and upgrade all available packages. To do so simply run below shown command it'll do the job for you.
yum -y updateyum -y install epel-release
Gradle requires Java Development Kit to work. So we will have to first install JDK and we can install JDK 8 using following command.
yum -y install java-1.8.0-openjdk
We have installed JDK now it is better to verify the installation using following command.
You should see following output on your screen.
openjdk version "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-b13)
OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)
We have installed all the dependencies required to install Gradle now we are ready to download and install it on your server. So first of all download the latest version of Gradle. Run the following command to download Gradle to your system.
Build time: 2017-03-03 19:45:41 UTC
Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM: 1.8.0_121 (Oracle Corporation 25.121-b13)
OS: Linux 3.10.0-514.10.2.el7.x86_64 amd64
Creating New Gradle Builds
You can now create new Gradle builds and for that you need to be able to identify the project type and how such a project is structured. Here we will create a project skeleton using Gradle build file. Run the following commands to cretae a basic java project.
mkdir testcd testgradle init --type java-library
Now when you'll check test directory you'll see that it has created a number of files and directories.
> gradle dist test
compiling unit tests
running unit tests
building the distribution
Sometimes you need to know which tasks are executed in which order for a given set of tasks specified on the command line, but you don't want the tasks to be executed. You can use the -m option for this. For example, if you run “gradle -m clean compile”, you'll see all the tasks that would be executed as part of the clean and compile tasks. This is complementary to the tasks, which shows you the tasks which are available for execution.
In this tutorial you've learned how to install Gradle on your CentOS 7 server.
You can create an email email filters through your cPanel control panel which is where you manage your hosting account. Email filters can be set up to target specific word, subject, from or to. Emails that are filtered out can be sent to a different email, deleted, delivered to a...
If you find your cPanel disk space filling up, or an email address has hit its disk space quota, cPanel has a helpful built in Email Disk Usage tool. This will provide you with a simple to understand breakdown of how much disk space each folder for a particular email...
Although WHM will normally automatically keep itself up to date, you may want to manually check for server updates / push through an update that is pending, or it may be that you have automatic updates switched off on your cPanel server. In this guide we will show you how...