Use gradle for api demo