Top "Sbt" questions

sbt is an open source build tool for Scala and Java projects, similar to Java's Maven or Ant.

How to "re-run with -deprecation for details" in sbt?

When I compile Scala code, by running sbt compile, SBT says: $ sbt compile ... [warn] there were 5 deprecation warnings; re-run with …

sbt
Why does Spark application fail with “ClassNotFoundException: Failed to find data source: kafka” as uber-jar with sbt assembly?

I'm trying to run a sample like StructuredKafkaWordCount. I started with the Spark Structured Streaming Programming guide. My code is …

scala apache-spark sbt sbt-assembly spark-structured-streaming
sbt: How can I add a local filesystem jar to my project?

I have a library compiled to a jar (not an sbt project, just the jar file) that's not available on …

jar repository sbt
assembly-merge-strategy issues using sbt-assembly

I am trying to convert a scala project into a deployable fat jar using sbt-assembly. When I run my assembly …

scala deployment sbt executable-jar sbt-assembly
How to set system properties for runMain on command line?

How can I set a system property for runMain upon executing it from command line on Windows? I'd like to …

sbt
Why does sbt build fail with "MissingRequirementError: object scala.runtime in compiler mirror not found."?

I have this multi-module build configuration that I'm trying to get working, but whenever I try to compile the project …

scala sbt multi-module
How can sbt pull dependency artifacts from git?

I've heard (and I know I've seen examples too, if only I can remember where) that sbt can obtain dependencies …

git scala build sbt build-dependencies
sbt assembly command not found

I'm trying to run sbt assembly. According to https://github.com/sbt/sbt-assembly , for sbt 0.13.6+ (I'm on 0.13.7) this should be …

sbt sbt-assembly
Compilation failed: error while loading AnnotatedElement, ConcurrentMap, CharSequence from Java 8 under Scala 2.10?

I'm using the following: Scala 2.10.4 Scalatra 2.2.2 sbt 0.13.0 java 1.8.0 casbah 2.7.2 scalatra-sbt 0.3.5 I'm frequently running into this error: 21:32:00.836 [qtp1687101938-55] ERROR o.…

scala sbt
how do I get sbt to gather all the jar files my code depends on into one place?

I'm new to sbt. I want it to put all the dependency jar files as well as my jar file …

scala jar sbt