kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stevo Slavić <ssla...@gmail.com>
Subject Building Kafka 0.8.1 branch with specific Scala version
Date Wed, 09 Apr 2014 13:13:05 GMT
Hello Kafka community,

I'm trying to import Kafka, 0.8.1 branch, in eclipse IDE.
Gradle eclipse plugin is already applied in Kafka build script.

If I just run "gradle eclipse", default scala 2.8.0 will be used to
generate eclipse project files, so classpath will exclude
kafka/utils/Annotations_2.9+.scala and include
kafka/utils/Annotations_2.8.scala instead. With eclipse using scala 2.10,
such Kafka eclipse project doesn't compile. Manual adjusting of classpath
is possible but dirty.

So, I want to use scala 2.10.x for Kafka build. Instructions in Kafka's
readme.md mentions scalaVersion property should be used. Has anyone used
it? I doubt, since it doesn't work.

If I run "gradle -PscalaVersion=2.10.1 eclipse", it seems only "2" will be
recognized as value of scalaVersion property (I see that when I modify
build script to print scalaVersion property value). Something, and I
couldn't find yet what (gradle, groovy, java, ...), has issues with dots in
property value. Escaping dots in value with backslash doesn't help, and
surrounding value with double quotes also doesn't work.

Does anyone know what's the root cause and have a solution for this issue?

Kind regards,
Stevo Slavic

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message