addSbtPlugin("net.databinder.dispatch" %% "dispatch-core" % "0.11.2")
addSbtPlugin("log4j" % "log4j" % "1.2.17")
addSbtPlugin("org.apache.kafka" % "kafka-clients" % "0.8.2.1")
addSbtPlugin("org.apache.kafka" % "kafka_2.10" % "0.8.2.1")and this is what i added to build.sbt on a different project (with out play) which worked fine:
libraryDependencies ++= Seq("org.apache.kafka" % "kafka-clients" % "0.8.2.1",
"org.apache.kafka" % "kafka_2.10" % "0.8.2.1",
"log4j" % "log4j" % "1.2.17",
"net.databinder.dispatch" %% "dispatch-core" % "0.11.2")I could not solve this issue.any ideas how to solve this?thanks
I am using version of play: 2.4.4 and scala version: 2.11.5This is what i added to plugins.sbt which did not workaddSbtPlugin("net.databinder.dispatch" %% "dispatch-core" % "0.11.2")
addSbtPlugin("log4j" % "log4j" % "1.2.17")
addSbtPlugin("org.apache.kafka" % "kafka-clients" % "0.8.2.1")
addSbtPlugin("org.apache.kafka" % "kafka_2.10" % "0.8.2.1")and this is what i added to build.sbt on a different project (with out play) which worked fine:
libraryDependencies ++= Seq("org.apache.kafka" % "kafka-clients" % "0.8.2.1",
"org.apache.kafka" % "kafka_2.10" % "0.8.2.1",
"log4j" % "log4j" % "1.2.17",
"net.databinder.dispatch" %% "dispatch-core" % "0.11.2")
Hi, the problem is when i use play framework, i run the application using: "activator run" and it uses the plugins.sbt and not the build.sbt.In the plugins.sbt the format i saw is the addSbtPlugin, can i use the libraryDependencies also in the plugins.sbt when using play?
--
You received this message because you are subscribed to a topic in the Google Groups "play-framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/play-framework/CvdsfZPdKCQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/e4f184ef-c75c-4747-912a-fa54d7dee7b0%40googlegroups.com.
you mean under build.sbt? since there is only one plugins.sbt and one build.sbt
libraryDependencies ++= Seq(
.... (ignore these lines !!)
"org.apache.kafka" % "kafka_2.10" % "0.9.0.0",
"org.apache.kafka" % "kafka-clients" % "0.9.0.0"
)
Any idea why this does not find the kafka libs?
thanks
Igmar--
You received this message because you are subscribed to a topic in the Google Groups "play-framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/play-framework/CvdsfZPdKCQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/48d93d88-3cd5-464b-b90f-675a8b5a8319%40googlegroups.com.
Ok. thanks, i guess my problem was not that. i tried to add a kafka to the sbt but it did not work when i added it to the build.sbt of play environment.But when i added it to a regular scala project build.sbt file it works. i have no idea why (this is why i tried adding this to the plugins.sbt - which i thought might solve the problem but ended as a wrong move)This is what i am trying to add:
libraryDependencies ++= Seq(
.... (ignore these lines !!)
"org.apache.kafka" % "kafka_2.10" % "0.9.0.0",
"org.apache.kafka" % "kafka-clients" % "0.9.0.0"
)Any idea why this does not find the kafka libs?
libraryDependencies ++= Seq(
"org.apache.kafka" % "kafka_2.11" % "0.9.0.0"
)
and i am still getting an error on the producer on this line of code:
val producer = new Producer[AnyRef, AnyRef](new ProducerConfig(props))play.sbt.PlayExceptions$CompilationException: Compilation error[not found: type Producer]
Igmar--
You received this message because you are subscribed to a topic in the Google Groups "play-framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/play-framework/CvdsfZPdKCQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/af159f37-afc9-4b06-8bd5-6d7700906fbb%40googlegroups.com.
I added this now to your suggestion:
libraryDependencies ++= Seq(
"org.apache.kafka" % "kafka_2.11" % "0.9.0.0"
)and i am still getting an error on the producer on this line of code:val producer = new Producer[AnyRef, AnyRef](new ProducerConfig(props))play.sbt.PlayExceptions$CompilationException: Compilation error[not found: type Producer]
import kafka.producer.{ProducerConfig, Producer}
Igmar--
You received this message because you are subscribed to a topic in the Google Groups "play-framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/play-framework/CvdsfZPdKCQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/50c8aadc-1642-4953-b874-3d31a8e3d8cd%40googlegroups.com.
Yes, my problem was imports. I wrote it - i guess you didn't get that.I took an example from online which missed some imports and i guess i got confused with the scala and all and looked for some bugger issue instead (newbie in scala).
--
You received this message because you are subscribed to a topic in the Google Groups "play-framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/play-framework/CvdsfZPdKCQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/b9a2f927-c4df-49b6-b956-901f410d7eba%40googlegroups.com.
Thanks
On Thu, Dec 3, 2015 at 4:03 PM, Igmar Palsenberg <ig...@palsenberg.com> wrote:
Op donderdag 3 december 2015 14:51:21 UTC+1 schreef Michal Singer:Yes, my problem was imports. I wrote it - i guess you didn't get that.I took an example from online which missed some imports and i guess i got confused with the scala and all and looked for some bugger issue instead (newbie in scala).activator update forces sbt to re-do dependencies. About the import : A decent IDE will help you with that. I use IntelliJ, that has good Scala support.Igmar
--
You received this message because you are subscribed to a topic in the Google Groups "play-framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/play-framework/CvdsfZPdKCQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to play-framework+unsubscribe@googlegroups.com.
hi, i am using intelij but on the project i raised for play for some reason the dependencies i added to build.sbt are not refelceted in the intelij and the imports are red like not detected even though the project compiles the fine.this is what caused the confusion.