Make master synchronous; add gradle build