migrate connector to gradle