Replacing some deprecated gradle syntax.