mmolimar / ksql-jdbc-driver

JDBC driver for Apache Kafka
Apache License 2.0
88 stars 19 forks source link

Unable to find class file: scala/Function1 #7

Closed joefromct closed 6 years ago

joefromct commented 6 years ago

Hi,

Any tips appreciated, thanks.

Register Server:

inbox org_20180815_082702_nuyvq1

Driver setup:


inbox org_20180815_082722_1vbvd2

The actual error:

inbox org_20180815_082939_ytwnxt

mmolimar commented 6 years ago

You don't have in the application classpath the scala-library. If you put this library in that classpath, it should work.

joefromct commented 6 years ago

Ok, you are right. I copied that into lib and it seems to get me past that error, and then actually complain on something like KsqlRest....

Because I wanted to give my other jvm sytsems just really a single jar file i started messing with sbt assembly to see if i could pull everything in...

I added this to your build.sbt:

assemblyMergeStrategy in assembly := {
  case PathList("META-INF", xs @ _*) => MergeStrategy.discard
  case x => MergeStrategy.first
}

assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = true, includeDependency = true)

And then i added the file project/assembly.sbt with the single line:

addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.7")

Then i did this:

sbt clean
sbt assembly

And pulled out the compiled jar... this seems to have everything I need. Thanks very much for your help.