Fix deprecation warnings (now errors in 0.14.4) w/ gradle.

(cherry picked from commit b433afb4e96bf35c71c36b3fdbfc9689c1bcb681)
2 files changed