a solution to some gradle problems.