You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ scalac -classpath vertx-core-3.5.1.jar:vertx-kafka-client-3.5.1.jar Hello.scala
Hello.scala:15: error: Class org.apache.kafka.clients.consumer.Consumer not found - continuing with a stub.
val consumer = KafkaConsumer.create(vertx, config)
^
Hello.scala:15: error: overloaded method value create with alternatives:
[K, V](x$1: io.vertx.core.Vertx, x$2: java.util.Properties)io.vertx.kafka.client.consumer.KafkaConsumer[K,V] <and>
[K, V](x$1: io.vertx.core.Vertx, x$2: java.util.Map[String,String])io.vertx.kafka.client.consumer.KafkaConsumer[K,V] <and>
[K, V](x$1: io.vertx.core.Vertx, x$2: org.apache.kafka.clients.consumer.Consumer[K,V])io.vertx.kafka.client.consumer.KafkaConsumer[K,V]
cannot be applied to (io.vertx.core.Vertx, scala.collection.immutable.Map[String,String])
val consumer = KafkaConsumer.create(vertx, config)
^
two errors found
$ scala -version
Scala code runner version 2.12.4 -- Copyright 2002-2017, LAMP/EPFL and Lightbend, Inc.
I wounder i should use vertx-kafka-client-scala_2.12 dependency as well, but it is not even mentioned in the documentation section.
The text was updated successfully, but these errors were encountered:
While reading documentation dedicated to scala API http://vertx.io/docs/vertx-kafka-client/scala/ it is assumed that API can be consumed from the dependency:
In fact, it can't.
Reproducer:
wget http://central.maven.org/maven2/io/vertx/vertx-core/3.5.1/vertx-core-3.5.1.jar
wget http://central.maven.org/maven2/io/vertx/vertx-kafka-client/3.5.1/vertx-kafka-client-3.5.1.jar
I wounder i should use
vertx-kafka-client-scala_2.12
dependency as well, but it is not even mentioned in the documentation section.The text was updated successfully, but these errors were encountered: