Questions tagged [sbt-assembly]

sbt-assembly is an sbt plugin for building a single JAR file of a project.

sbt-assembly is open-source and is available under the MIT licence.

528 questions
0
votes
1 answer

trying to use sbt assembly

sbt version is 0.13.9 and scala 2.11.7/ I know previous versions of sbt relied on scala 2.10 - is that still the case? I have a Java project for which I added an assembly.sbt file in the project directory (as per the sbt assembly instructions for…
ali haider
  • 19,175
  • 17
  • 80
  • 149
0
votes
0 answers

excluding component of a provided library

I'm facing a somehow weird problem with Spark, Google guava, and SBT. I'm writing a Spark 1.5.2 app that uses a component from the last version of Google guava. In my build.sbt I thus specified the following dependencies: libraryDependencies +=…
Alberto
  • 597
  • 3
  • 17
0
votes
1 answer

How to build a bundle sbt from source for offline use?

My goal is to have a sbt jar file with all dependencies in order to create a debian package, so it could be install on machine without check/install package at first run. Is it the right choice use sbt-assembly to build a sbt jar with all…
Fabio
  • 155
  • 1
  • 1
  • 6
0
votes
1 answer

How to build using SBT for ONE job only

I am trying to build a single spark scala job. So far as I know, it should be done using command in the spark directory, however using this method will build all jobs existing there. Is there a way to build a single specific file at a…
user5278075
0
votes
1 answer

Strip ScalaSignature annotation from resulting binaries

How can you strip java or scala annotations programmatically? One of the deliverables for my current project is my code, plus whatever dependencies my code relies on, as an uber-jar. We're building an SDK therefore any of the included dependencies…
James Sheppard
  • 301
  • 1
  • 4
  • 15
0
votes
1 answer

Unable to create a fat jar for multi module project using sbt-assembly

I have added a assembly.sbt file to my project folder. I have not kept any sbt files in any of the modules. I do not get any error that could lead to a solution. Also, it is a Spark code written in Java. Running sbt assembly give me the following…
morfious902002
  • 916
  • 1
  • 11
  • 29
0
votes
2 answers

Spark-Cassandra-Connectror sbt assembly error: "deduplicate: different file contents found in the following"

I have a problem running sbt/sbt assembly inside spark-cassandra-connector : java.lang.RuntimeException: deduplicate: different file contents found in the following: …
0
votes
2 answers

SBT Assembly plugin Errors out

I have written the following sbt file name := "Test" version := "1.0" scalaVersion := "2.11.7" libraryDependencies ++= Seq( "org.apache.hadoop" % "hadoop-client" % "2.7.1", "org.apache.spark" % "spark-core_2.10" % "1.3.0", "org.apache.avro"…
Knows Not Much
  • 30,395
  • 60
  • 197
  • 373
0
votes
0 answers

how do I deal with run-time dependency conflicts on SBT?

Let't put this in context. I have a line of code running within a broader program(Spark/Scala) val dateGroupKVpair: RDD[(String, Iterable[Option[stockPriceInfo]])] = stockDataFilteredRDD.keyBy(x => x.get.ticker + "|" +…
Don E
  • 231
  • 1
  • 2
  • 13
0
votes
1 answer

Error about sbt yarn at using spark

hi when i am writing this code >sbt And after seeing this result beyhan@beyhan:~/sparksample$ sbt Starting sbt: invoke with -help for other options [info] Set current project to Spark Sample (in build file:/home/beyhan/sparksample/) And after i…
Beyhan Gul
  • 1,191
  • 1
  • 15
  • 25
0
votes
1 answer

How can I perform a check before sbt assembly

I would like to perform some checks before sbt assembly that make the build fail early when certain conditions are not met. What is the recommended way to do this?
Matthias Langer
  • 994
  • 8
  • 22
0
votes
1 answer

Why do some Applications use a "fat-jar" compared to a normal one?

What is the advantage of using a fat-jar over a traditional jar?
Don E
  • 231
  • 1
  • 2
  • 13
0
votes
1 answer

How to override classpath in sbt build project?

I'm using an sbt plugin that reads an embedded resource via new InputStreamReader( getClass().getResourceAsStream("/%s" format src), utf8 ) for example src = "resources/main.js" I want to override this resource in the classpath that…
Stas
  • 751
  • 1
  • 11
  • 22
0
votes
2 answers

Why is my SBT intelliJ build not including dependency Jars?

My SBT appears to have stopped including dependency Jars. I have been able to do this previously, until I decided to upgrade my intelliJ version, which messed my whole environment. I have since reverted back to the old version, but I still don't see…
Don E
  • 231
  • 1
  • 2
  • 13
0
votes
1 answer

Difficulties running plugin sbt-assembly

I try to install sbt-assembly to create jar file with all my scala files and their dependencies. I already installed sbt (the command "sbt sbt-version" in shell gives the following version: 0.13.9). I downloaded sbt-assembly from the Github…
Dust009
  • 315
  • 2
  • 10