Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Scala 2.10 #17

Open
jadams74 opened this issue Feb 22, 2016 · 5 comments
Open

Support Scala 2.10 #17

jadams74 opened this issue Feb 22, 2016 · 5 comments

Comments

@jadams74
Copy link

Would like to use this in a project that requires scala 2.10. kafka-unit is using org.apache.kafka:kafka_2.11 I need org.apache.kafka:kafka_2.10 for my projects.

compile('org.apache.kafka:kafka_2.11:0.8.2.2')

This dependency conflict causes fatal errors during KafkaServer startup:

Feb 22 2016 09:12:41.572 (ScalaTest-run:kafka.utils.Logging$class:fatal:116) FATAL - [Kafka Server 1], Fatal error during KafkaServer startup. Prepare to shutdown
java.lang.NoSuchMethodError: scala.Predef$.$conforms()Lscala/Predef$$less$colon$less;

I don't know the best way to proceed and support multiple scala versions but I can try a pull request if given the right direction. I was in the middle of writing a similar framework and would prefer to commit here then duplicate this work.

@chbatey
Copy link
Owner

chbatey commented Feb 26, 2016

This would be easier with SBT, I don't think gradle supports cross compilation with different scala versions.

@mbode
Copy link

mbode commented Oct 20, 2016

@jadams74 Were you able to resolve this problem in a satisfying way?

@jadams74
Copy link
Author

@mbode No. Use docker.

@mbode
Copy link

mbode commented Oct 20, 2016

@jadams74 Could you go into a bit more detail? Are you using a Docker image containing a Kafka broker and then running your tests against that?

@manub
Copy link

manub commented Nov 3, 2016

@jadams74 I wrote a similar library for Scala. You may want to have a look at it. https://github.com/manub/scalatest-embedded-kafka.

@chbatey - hope you don't mind me writing this message!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants