Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Gradle

  1. Download and extract Gradle to a specified directory (for example, /opt/tools/installed/).
    1
    2
    3
    wget https://downloads.gradle.org/distributions/gradle-4.10-bin.zip --no-check-certificate
    unzip gradle-4.10-bin.zip
    mv gradle-4.10 /opt/tools/installed/
    
  2. Modify the Gradle environment variables.
    1. Open the /etc/profile file.
      1
      vi /etc/profile
      
    2. Press i to enter the insert mode and add the following content to the end of the file:
      1
      2
      export GRADLE_HOME=/opt/tools/installed/gradle-4.10
      export PATH=$GRADLE_HOME/bin:$PATH
      
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  3. Make the environment variables take effect.
    1
    source /etc/profile