You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Chris Birchall (JIRA)" <ji...@apache.org> on 2012/06/14 10:41:43 UTC

[jira] [Commented] (KAFKA-134) Upgrade Kafka to sbt 0.10.1

    [ https://issues.apache.org/jira/browse/KAFKA-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13294903#comment-13294903 ] 

Chris Birchall commented on KAFKA-134:
--------------------------------------

If you're interested, I have also had a stab at porting Kafka to SBT 0.11.3 and Scala 2.9.2. The code is available here:

https://github.com/cb372/kafka-1

It's all based on Kafka trunk, forked yesterday at revision 1339944.

There are 3 branches:

* sbt0.11.3  <-- SBT updated to 0.11.3, Scala still at 2.8.0
* scala2.9.2 <-- SBT 0.11.3, Scala updated to 2.9.2
* break2.8compatibility  <-- SBT 0.11.3, Scala 2.9.2, all deprecation warnings fixed, code is now incompatible with Scala 2.8.x

A few comments:

* I'm no SBT guru so there may some craziness inside Build.scala. Hopefully it's understandable.
* There is no fix for KAFKA-15 because I wasn't really sure of how it was supposed to work in the first place.
* Worringly, after upgrading Scala to 2.9.2 about 1/3 of the tests started failing!
* The reason that all the tests fail in Joe Stein's comment above is that ScalaTest has not been updated. Updating it to scalatest_2.9.2 v1.8 will fix this.
* The run-rat.sh script had the jar's path hardcoded into it. Because the jar is now somewhere in the Ivy cache, rather than the lib_managed folder, I changed this so that SBT passes the jar's path to the script.

Feel free to use any of this code, if it's of any help to you.

                
> Upgrade Kafka to sbt 0.10.1
> ---------------------------
>
>                 Key: KAFKA-134
>                 URL: https://issues.apache.org/jira/browse/KAFKA-134
>             Project: Kafka
>          Issue Type: Improvement
>          Components: packaging
>            Reporter: Joshua Hartman
>         Attachments: kafka-134-v2-draft.patch, kafka-134-v3-draft.patch, kafka_patch.txt
>
>
> Upgrading to sbt 0.10.1 is a nice to have as sbt moves forward. Plus, it's a requirement for me to help publish Kafka to maven :)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira