add jar and fix build.gradle for mac os