Added `generate` task to Gradle build script.