Changes to make it ready for build with Gradle 2.0 (codenarc).