Simpler Gradle plugin rules for adding new generator

Required to add a new task that generated ObjC code.