home / blog

Gradle for MacOSX

Pretty much the absolute minimum build.gradle file…

apply plugin: 'java'
apply plugin: 'eclipse'

Project structure

./build.gradle
./src
./src/main
./src/main/java
./src/main/java/com
./src/main/java/com/adamish
./src/main/java/com/adamish/testproject
./src/main/java/com/adamish/testproject/Main.java

Now install gradle and build it.

sudo port install gradle
sudo port selfupdate
gradle clean ec build
....
:clean UP-TO-DATE
:eclipseClasspath
:eclipseJdt
:eclipseProject
:eclipse
:compileJava
:processResources UP-TO-DATE
:classes
:jar
:assemble
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test
:check
:build

BUILD SUCCESSFUL

Total time: 11.212 secs
This entry was posted in geek and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published.