convert to gradle build system