For formatting: I'm not familiar with how gradle handles this, but we can solve this problem very elegantly using a common eclipse preference set (1 person creates preference, export -> import by everyone). The one I have at work right now applies a bunch of formatting rules every time a file is saved.