Skip to content

Yet another programming solutions log

Sample bits from programming for the future generations.

Technologies Technologies
  • Algorithms and Data Structures
  • Java Tutorials
  • JUnit Tutorial
  • MongoDB Tutorial
  • Quartz Scheduler Tutorial
  • Spock Framework Tutorial
  • Spring Framework
  • Bash Tutorial
  • Clojure Tutorial
  • Design Patterns
  • Developer’s Tools
  • Productivity
  • About
Expand Search Form

Gradle install and setup

farenda 2015-06-01 0

In this article we’ll show how to install Gradle and do basic Gradle setup to have working configuration for projects!

Gradle basic setup

  1. Download Gradle
  2. Unpack it to a directory

    $> unzip gradle-2.4-all.zip -d ~/programs
    
  3. Create environment variable GRADLE_HOME that points to the Gradle install directory.

    GRADLE_HOME=~/programs/gradle-2.4
    
    # In Linux it's best to add the following line to ~/.bashrc:
    export GRADLE_HOME=~/programs/gradle-2.4
    
  4. Add GRADLE_HOME/bin to the PATH variable to have gradle command available on command line from every directory:

    export PATH="${PATH}":"${GRADLE_HOME}/bin"
    
  5. Reload system variables or restart computer. In Linux you can just do source ~/.bashrc or restart the terminal.

Testing Gradle setup:

To verify that you’ve installed Gradle correctly run gradle –version in command line. It should give similar results:

$> gradle --version

------------------------------------------------------------
Gradle 2.4
------------------------------------------------------------

Build time:   2015-05-05 08:09:24 UTC
Build number: none
Revision:     5c9c3bc20ca1c281ac7972643f1e2d190f2c943c

Groovy:       2.3.10
Ant:          Apache Ant(TM) version 1.9.4 compiled on April 29 2014
JVM:          1.8.0_45 (Oracle Corporation 25.45-b02)
OS:           Linux 3.16.0-37-generic amd64
Share with the World!
Categories Gradle Tags gradle
Previous: Java List types and their methods
Next: Gradle Java version

Recent Posts

  • Java 8 Date Time concepts
  • Maven dependency to local JAR
  • Caesar cipher in Java
  • Java casting trick
  • Java 8 flatMap practical example
  • Linked List – remove element
  • Linked List – insert element at position
  • Linked List add element at the end
  • Create Java Streams
  • Floyd Cycle detection in Java

Pages

  • About Farenda
  • Algorithms and Data Structures
  • Bash Tutorial
  • Bean Validation Tutorial
  • Clojure Tutorial
  • Design Patterns
  • Java 8 Streams and Lambda Expressions Tutorial
  • Java Basics Tutorial
  • Java Collections Tutorial
  • Java Concurrency Tutorial
  • Java IO Tutorial
  • Java Tutorials
  • Java Util Tutorial
  • Java XML Tutorial
  • JUnit Tutorial
  • MongoDB Tutorial
  • Quartz Scheduler Tutorial
  • Software Developer’s Tools
  • Spock Framework Tutorial
  • Spring Framework

Tags

algorithms bash bean-validation books clojure design-patterns embedmongo exercises git gof gradle groovy hateoas hsqldb i18n java java-basics java-collections java-concurrency java-io java-lang java-time java-util java-xml java8 java8-files junit linux lists log4j logging maven mongodb performance quartz refactoring regex rest slf4j solid spring spring-boot spring-core sql unit-tests

Yet another programming solutions log © 2022

sponsored