Moved common gradle code to separate shared bb4.gradle file.