Saturday 10 September 2016

Install gradle


INSTALL GRADLE

  • Download gradle
  • Extract zip to a folder which will be the home of gradle

SET GRADLE HOME ENVIRONMENT VARIABLE

  • Press Windows + Break to open System Settings
  • In the System window click on Advanced System Settings
  • In the System Properties window click on Environment Variables...
  • In the Environment Variables window, on the bottom part in System Variables, click on New...

  • In the New System Variable window
    • under Variable name field type GRADLE_HOME
    • under Variable value field type the path of gradle installation directory (where you extracted gradle)
  • Press OK

  • In the Environment Variables window, on the bottom part in System Variables, select Path and click Edit...



  • In the Edit environment variable window click New and type %GRADLE_HOME%\bin

TESTING GRADLE INSTALLATION

  • Open a Command Prompt Window:
    • On your desktop (or any Windows Explorer location), Right Click holding SHIFT key pressed
    • Click on Open command window here

If you do not hold SHIFT while right clicking you will not see the option
  • In the C:\Windows\System32\cmd.exe window type gradle -v
  • A successful installation will display this window:

If you do not see the windows you have not set correctly the environment variables, so return to SET GRADLE HOME ENVIRONMENT VARIABLES section and carefully check any type errors.




    No comments:

    Post a Comment