Updated for gradle plugin 0.12.+.