Java build tools: ant vs maven vs gradle


Topic Ant with Ivy Maven Gradle
Logo
Released Year 2000 2004 2012
Build scripts format XML XML Own DSL based on Groovy
Ability to download Dependency No Yes Yes
Code Snippet ivy.xml

build.xml
pom.xml
build.gradle
apply plugin: 'java'
apply plugin: 'checkstyle'
apply plugin: 'findbugs'
apply plugin: 'pmd'

version = '1.0'

repositories {
mavenCentral()
}

dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
}

Comments

Most viewed