configured gradle script to build without errors/abiding by gradle project convention