Browse Source

KAFKA-139 cross-compile multiple Scala versions the dependency jars moved and the bin scripts needed to point to the new locations

0.8.0-beta1-candidate1
Joe Stein 12 years ago
parent
commit
5e3e181ace
  1. 18
      bin/kafka-run-class.sh
  2. 3
      core/build.sbt
  3. 2
      project/Build.scala

18
bin/kafka-run-class.sh

@ -22,12 +22,20 @@ fi @@ -22,12 +22,20 @@ fi
base_dir=$(dirname $0)/..
for file in $base_dir/project/boot/scala-2.8.0/lib/*.jar;
do
CLASSPATH=$CLASSPATH:$file
done
library=~/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.8.0.jar
CLASSPATH=$CLASSPATH:$library
compiler=~/.ivy2/cache/org.scala-lang/scala-compiler/jars/scala-compiler-2.8.0.jar
CLASSPATH=$CLASSPATH:$compiler
log4j=~/.ivy2/cache/log4j/log4j/jars/log4j-1.2.15.jar
CLASSPATH=$CLASSPATH:$log4j
slf=~/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.6.4.jar
CLASSPATH=$CLASSPATH:$slf
zookeeper=~/.ivy2/cache/org.apache.zookeeper/zookeeper/jars/zookeeper-3.3.4.jar
CLASSPATH=$CLASSPATH:$zookeeper
jopt=~/.ivy2//cache/net.sf.jopt-simple/jopt-simple/jars/jopt-simple-3.2.jar
CLASSPATH=$CLASSPATH:$jopt
for file in $base_dir/core/target/scala_2.8.0/*.jar;
for file in $base_dir/core/target/scala-2.8.0/*.jar;
do
CLASSPATH=$CLASSPATH:$file
done

3
core/build.sbt

@ -7,6 +7,8 @@ resolvers ++= Seq( @@ -7,6 +7,8 @@ resolvers ++= Seq(
"SonaType ScalaTest repo" at "https://oss.sonatype.org/content/groups/public/org/scalatest/"
)
libraryDependencies <+= scalaVersion("org.scala-lang" % "scala-compiler" % _ )
libraryDependencies ++= Seq(
"org.apache.zookeeper" % "zookeeper" % "3.3.4",
"com.github.sgroschupf" % "zkclient" % "0.1",
@ -22,3 +24,4 @@ libraryDependencies <<= (scalaVersion, libraryDependencies) { (sv, deps) => @@ -22,3 +24,4 @@ libraryDependencies <<= (scalaVersion, libraryDependencies) { (sv, deps) =>
})
}

2
project/Build.scala

@ -34,7 +34,7 @@ object KafkaBuild extends Build { @@ -34,7 +34,7 @@ object KafkaBuild extends Build {
libraryDependencies ++= Seq(
"log4j" % "log4j" % "1.2.15",
"net.sf.jopt-simple" % "jopt-simple" % "3.2",
"org.slf4j" % "slf4j-simple" % "latest.release"
"org.slf4j" % "slf4j-simple" % "1.6.4"
),
// The issue is going from log4j 1.2.14 to 1.2.15, the developers added some features which required
// some dependencies on various sun and javax packages.

Loading…
Cancel
Save