Update build.gradle

Forge versions prior to 1198 do not have materialCost variable in AnvilUpdateEvent.java