Fix deprecated sbt methods in Build.scala
Fix deprecated sbt methods in Build.scala

Problem

There're 5 warning logs related to usage of deprecated sbt methods.

Solution

We can modify deprecated methods as each warning indicates;

1. replaced `<<=` with `:=`
[warn] util/project/Build.scala:90: `<<=` operator is deprecated. Use `key := { x.value }` or `key ~= (old => { newValue })`.
[warn] See http://www.scala-sbt.org/0.13/docs/Migrating-from-sbt-012x.html
[warn]     publishTo <<= version { (v: String) =>
[warn]               ^

2. replaced `<+=` with `+=`
[warn] util/project/Build.scala:189: `<+=` operator is deprecated. Try `lhs += { x.value }`
[warn]   or see http://www.scala-sbt.org/0.13/docs/Migrating-from-sbt-012x.html.
[warn]     resourceGenerators in Compile <+=
[warn]                                   ^

3. replaced `<++=` with `++=`
[warn] util/project/Build.scala:204: `<++=` operator is deprecated. Try `lhs ++= { x.value }`
[warn]   or see http://www.scala-sbt.org/0.13/docs/Migrating-from-sbt-012x.html.
[warn]       scalacOptions in doc <++= version.map(v => Seq("-doc-title", "Util", "-doc-version", v)),
[warn]                            ^

4. fixed `(k1, k2) map { (x, y) => ... }`
[warn] util/project/Build.scala:190: method t3ToTable3 in object Scoped is deprecated: The sbt 0.10 style DSL is deprecated: `(k1, k2) map { (x, y) => ... }` should now be `{ val x = k1.value; val y = k2.value }`.
[warn] See http://www.scala-sbt.org/0.13/docs/Migrating-from-sbt-012x.html
[warn]       (resourceManaged in Compile, name, version) map { (dir, name, ver) =>

Result

One last warning is left as follows:

[warn] util/project/Build.scala:10: trait Build in package sbt is deprecated: Use .sbt format instead
[warn] object Util extends Build {
[warn]                     ^

Signed-off-by: Jillian Crossley <jillianc@twitter.com>

RB_ID=917023

twitter/util,twitter/util,twitter/util