fix build.gradle for release and snapshot deploy