Before (Maven): http://pastie.org/1253428 After (Gradle): http://pastie.org/1253435 This new task: - may be run independently with `gradle generateSql` - is tied to the build lifecycle and will execute prior to 'compileJava' - writes output to build/generated-resources - is set up for incremental build -- will not run if the above dir exists - may be selectively cleaned with `gradle cleanGenerateSql`