Fixing add() usage warning in gradle build for deprecated add() method.