Converted to API to a gradle project