extracted common gradling to top level file