grails (11) vaadin (11) meteor (6) java (4) elasticsearch (3) apple (2) centos (1) cloudbees (1) google analytics (1) gradle (1) heroku (1) javafx (1) javascript (1) jdbc (1) jug (1) logback (1) logging (1) mac os (1) management (1) mongodb (1) mongolab (1) mysql (1) twitter (1) ubuntu (1)

Wednesday, May 2, 2012

How to install Gradle on Mac OS


  1. Open http://gradle.org/downloads and download zip file containing binaries
  2. Move content of zip to e.g. /Users/xxx/Installations/gradle (you can choose what ever directory you like...). 
  3. Open console and add system variable:
    vi ~/.profile
    Copy paste the following text into the .profile file:
    GRADLE_HOME=/Users/xxx/Installations/gradle;
    export GRADLE_HOME
    export PATH=$PATH:$GRADLE_HOME/bin
  4. Test it in console
    gradle -version
    You should see something like this: 
    ------------------------------------------------------------
    Gradle 1.0-rc-3
    ------------------------------------------------------------

    Gradle build time: Sunday, April 29, 2012 11:51:52 PM UTC
    Groovy: 1.8.6
    Ant: Apache Ant(TM) version 1.8.2 compiled on December 20 2010
    Ivy: 2.2.0
    JVM: 1.6.0_31 (Apple Inc. 20.6-b01-415)
    OS: Mac OS X 10.7.3 x86_64


TextLab for Mac
Ultimate application to validate, clean and format JSON, XML, SQL, HTML.

7 comments: