Gradle is a cool replacement for good old ant and her successor maven.
It uses Groovy for it’s config-files (and the internal design). Simply change the defaults by small closures…
This small script is a complete build and TestNG deployment-script for a simple project…
apply plugin: 'java' dependencies { compile "com.google.inject:guice:2.+" testCompile 'org.powermock:powermock-api-mockito:1.+' testCompile 'org.powermock:powermock-module-testng:1.+' } test { useTestNG() }
Just start, compiling, jar-ing and testing with:
gradle build