build.xml<syntaxhighlight lang="xml"><project></project></syntaxhighlight>build.gradle<syntaxhighlight lang="groovy">ant.importBuild 'build.xml'</syntaxhighlight>Running gradle ant.target will result in<syntaxhighlight lang="text" highlight="1">> gradle ant.target:ant.target[ant:echo] Running ant.target!
build.gradle<syntaxhighlight lang="groovy" line="1">apply plugin: 'java'sourceSets.main.java.srcDirs = ['src/java']</syntaxhighlight>* Apache Ant* Apache Maven* Make* Rake* SCons* http://www.gradle.org/ — официальный веб-сайт.