migrating to a gradle build system