in Google I/O 2013 "Gradle combines the power and flexibility of Ant with the dependency management and conventions of Maven into a more effective way to build." Source: gradle.org Why Gradle? 6 Sunday 9 November 14
use multiple versions • No need to manually install • Switch between projects • Wrapper script in both Unix-like and Windows environment • Ensures all team members run the same version within a project Gradle wrapper 8 Sunday 9 November 14
build.gradle dependencies { classpath 'com.android.tools.build:gradle:0.14.1' } Good practices • Avoid auto-increment version (‘+’) • Test before upgrade plugins Android Gradle plugin version 10 Sunday 9 November 14
"String", "BUILD_NUMBER", "\"123\"" Output public final class BuildConfig { public static final String BUILD_NUMBER = "123"; } Custom variables 14 Sunday 9 November 14