Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts

Wednesday, March 9, 2016

Gradle : Using gradle in Command prompt

Using gradle in Command prompt

Make sure Gradle is setup in your system environment variables


Downloading with Git using Windows CMD from a GitHub project
You can get download the link from GitHub <b>HTTPS clone URL</b>
Download with Window Command Prompt cmd for above picture HTTPS clone URL


  1.  Copy the HTTPS clone URL shown in picture 1
  2. Open CMD
  3. git clone //paste the URL show in picture 2
  4. or you can just click on button "Clone in desktop" or "Download ZIP"

Running Gradle tests
  1. In cmd prompt > Goto the downloaded directory
  2. gradle clean
  3. gradle builddependents
  4. gradle  

Sunday, March 6, 2016

Gradle : How to Setup Gradle

How to Set Gradle

  1. Download the latest gradle from https://services.gradle.org/distributions
  2. Extract to C drive >Program files
  3. Note down the path for the folder 
  4. Open Environment variables >System Variables
  5. Click on new button
  6. Enter variable  name: GRADLE_HOME
  7. Variable path : C:\Program Files\gradle-2.10
     
  8. Open Environment variables >System Variables
  9.  select "path"under system variables
  10. Click on Edit button
  11. Add following at the end of the string ";%GRADLE_HOME%\bin"
  12.  
  13. Open Cmd
  14. type "gradle -v"