SBT build fails
I have a CompositeCodec I'd like to contribute, but the SBT build fails with the following output:
[info] == cassie-core / compile ==
[info] Source analysis: 39 new/modified, 44 indirectly invalidated, 0 removed.
[info] Compiling main sources...
[error] Note: Some input files use unchecked or unsafe operations.
[error] Note: Recompile with -Xlint:unchecked for details.
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/BaseColumnFamily.scala:48: value setTerminalId is not a member of object com.twitter.finagle.tracing.Trace
[error] Trace.setTerminalId(Trace.nextId)
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/BatchMutationBuilder.scala:62: value Void is not a member of object com.twitter.util.Future
[error] Future.Void
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/Cluster.scala:56: not found: value collectionAsScalaIterable
[error] this(collectionAsScalaIterable(seedHosts).toSet, 9160, NullStatsReceiver)
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/ClusterRemapper.scala:58: not found: value collectionAsScalaIterable
[error] collectionAsScalaIterable(h.endpoints).map {
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/ColumnFamily.scala:184: not found: value collectionAsScalaIterable
[error] for (rowEntry <- collectionAsScalaIterable(rows.entrySet))
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/ColumnFamily.scala:231: not found: value collectionAsScalaIterable
[error] for (rowEntry <- collectionAsScalaIterable(result.entrySet)) {
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/ColumnFamily.scala:284: not found: value collectionAsScalaIterable
[error] for (key <- collectionAsScalaIterable(result.keySet)) {
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/CounterBatchMutationBuilder.scala:49: value Void is not a member of object com.twitter.util.Future
[error] Future.Void
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/CounterColumnFamily.scala:166: not found: value collectionAsScalaIterable
[error] for (rowEntry <- collectionAsScalaIterable(rows.entrySet))
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/CounterColumnFamily.scala:198: not found: value collectionAsScalaIterable
[error] for (rowEntry <- collectionAsScalaIterable(result.entrySet)) {
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/Keyspace.scala:76: value Void is not a member of object com.twitter.util.Future
[error] if (batches.size == 0) return Future.Void
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/SuperCounterBatchMutationBuilder.scala:33: value Void is not a member of object com.twitter.util.Future
[error] Future.Void
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/SuperCounterColumnFamily.scala:81: not found: value collectionAsScalaIterable
[error] for (rowEntry <- collectionAsScalaIterable(result.entrySet)) {
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/codecs/Codec.scala:18: collectionAsScalaIterable is not a member of scala.collection.JavaConversions
[error] import scala.collection.JavaConversions.collectionAsScalaIterable
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/codecs/Codec.scala:41: not found: value collectionAsScalaIterable
[error] for (value <- collectionAsScalaIterable(values))
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/codecs/LegacyUtf8Codec.scala:24: overloaded method constructor deprecated with alternatives:
errordeprecated
I noticed the sbt dependencies are different than the ones in the pom, so I tried updating the sbt ones to match the pom. This gets rid of the Twitter-related errors, but not the Scala ones. Changing to Scala 2.9 gets rid of those, but then the unit tests fail. I also tried the Maven build, but it complains of a missing plugin that seems to be internal to Twitter.
Am I missing something?
Robbie
Have you managed to resolve this compile issues? Could you provide your detailed success configuration (probably the project/version.properties file). I have tried to upgrade finagle-* and util-logging up to 5.0.3 in version.properties file, but it doesn't help.