Saturday 10 September 2016

Install git scm

INSTALLING GIT SCM

  • Select the location to install (or leave it as it is by default)
  • Select git components to install. I always also install the following optionals
    • Additional Icons
    • Use a TrueType font in all  console windows

  • Select whether or not to create Start Menu Shortcuts (I usually go for no)
  • Adjust the PATH environment (usually leave this unchanged)
  • Select to always submit on repo unix style endings, but checkout windows style
  • Configure the terminal emulator (usually leave as is to use MSYS2)
  • Configure extra options (enable all features) and click Install
  • Click Finish (un-checking the View release notes)










Setup gradle project in IntelliJ

This tutorial assumes you have already installed Gradle and JDK

  • Open IntelliJ IDEA and in the Welcome to IntelliJ IDEA window click on Create New Project
  • In  the New Project window select from the list on the left Gradle then in the Additional Libraries and Frameworks: section select Java and click Next
this will not work if you have no JDK installed
  • In the next step:
    • under the GroupId enter your group id in reverse website format (can be anything)
    • under the ArtifactId enter your artifact id (can be anything)
    • under the Version enter 1.0 (or leave unchanged)
  • And click Next

  • In the next step tick Use auto-import
  • Tick Use local gradle distribution
  • Enter the gradle location or Browse for gradle installation directory



  • So now if your setup looks like this, click Next
  • Next check if the name and location of the project is correct, if not modify accordingly and click Finish


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.