Creating a simple project with Gradle

Gradle can be used to create a Java project; in our case, we can create a common JAR project to explain a simple configuration to use Maven repositories within Gradle.

First, we must download the current version of Gradle; we can download the latest version 2.0. Once we get a ZIP file, we unzip it and put it into a folder as follows:

C:gadle-2.0

Add GRADLE_HOME/bin to your PATH environmental variable to launch the Gradle command from every location. Obviously, you must have an installation of Java on your machine if you want to build a Java project.

All Gradle projects contain a file called build.gradle that contains the instructions to build and assemble projects through the command line.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset