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
2
votes
0 answers

sbt build issue - IO error while decoding code.scala with UTF-8

I am trying to sbt assembly my code (script.scala) on my Windows 7 machine using cmd, and I am getting the above posted error. I have also tried to set this on cmd JAVA_TOOL_OPTIONS='-Dfile.encoding=UTF8' but it still does not help. I am editing the…
akash sharma
  • 411
  • 2
  • 24
2
votes
1 answer

sbt exclude artifact with 'exclude'

I am looking to exclude artifact from jar with sbt pattern in build.scala. I have seen few posts but have no clue still. [error] deduplicate: different file contents found in the following: [error]…
Toren
  • 6,648
  • 12
  • 41
  • 62
2
votes
0 answers

SBT generates a $global directory that suspends sbt assembly

We're using SBT 0.13.13 with SBT assembly 0.14.3 Lately, sbt assembly started getting stuck when trying to read some XML files. After some digging we found out it happens because SBT generates a directory streams under the target dir & inside that…
Gideon
  • 2,211
  • 5
  • 29
  • 47
2
votes
3 answers

sbt assembly akka-stream_2.12:2.4.19 and akka-actor_2.12:2.4.19 are evicted

I want to make fat jar of my project with sbt assembly. Here is my build.sbt: name := "projName" version := "1.0" scalaVersion := "2.12.1" libraryDependencies ++= Seq( "com.typesafe.akka" %% "akka-stream" % "2.5.3", "com.typesafe.akka" %%…
2
votes
1 answer

sbt output in jenkins giving junk characters

Prints the following in output > [A [2K[0m[[0minfo[0m] [0mResolving org.scala-sbt#task-system;0.13.13 ...[0m [A [2K[0m[[0minfo[0m] [0mResolving org.scala-sbt#tasks;0.13.13 ...[0m [A [2K[0m[[0minfo[0m] [0mResolving org.scala-sbt#tracking;0.13.13…
ShakyaS
  • 353
  • 1
  • 5
  • 20
2
votes
1 answer

java.lang.ClassFormatError: Extra bytes at the end of class file

I generated a jar using sbt assembly but when I am trying to run the jar I am getting the below error. I am using scala 2.12.0, sbt 0.13.8 and assembly 0.14.2. Can anyone help me out what this error means and the resolution? Error:…
ArunavaS
  • 197
  • 1
  • 12
2
votes
2 answers

No configuration setting found for key 'akka.remote.artery'

I am creating a simple akka cluster with ClusterActorRefProvider using netty. Everything is working fine when I run the code from idea. But, all of a sudden everything fails when I run the application as jar. It is throwing an error "No…
ArunavaS
  • 197
  • 1
  • 12
2
votes
2 answers

Sbt Assembly Include Conf Files inside the JAR

I'm using the sbt assembly plugin to create a JAR file and I have the following folder structure: src -main -scala -resources -application.conf Now, when I do sbt clean assembly I can see in the produced Jar file that the application.conf…
joesan
  • 13,963
  • 27
  • 95
  • 232
2
votes
0 answers

Geotools JAI fatjar causing problems in native dependencies

I have a scala project using geotools / JAI dependencies in order to process ESRi ASCII Grid files to WKT in java. When deploying a fat-jar, I get a SIGSEV in the native part of the jai code. It is using the following dependencies: lazy val geotools…
Georg Heiler
  • 16,916
  • 36
  • 162
  • 292
2
votes
2 answers

unresolved dependency: com.eed3si9n#sbt-assembly;0.13.0: not found

Did lots of search, saw many people having the similar issue and tried various suggested solution. None worked. Can someone help me? resolvers += Resolver.url("bintray-sbt-plugins",…
Ankur
  • 417
  • 1
  • 4
  • 22
2
votes
1 answer

sbt-assembly not working for scala 2.12.1

My project build, when using scalaVersion to be 2.11.8. When I switch to scalaVersion 2.12.1, I get the error that the symbol assembly in mainClass in assembly := ... cannot be found. Is https://github.com/sbt/sbt-assembly not working with scala…
Make42
  • 12,236
  • 24
  • 79
  • 155
2
votes
2 answers

Scala/Spark: Caused by: java.lang.ClassNotFoundException: org.apache.spark.Logging

I am pretty new to scala and spark. Trying to fix my set-up of spark/scala development. I am confused by the versions and missing jars. I searched on stackoverflow, but still stuck in this issue. Maybe something missing or mis-configured. Running…
BAE
  • 8,550
  • 22
  • 88
  • 171
2
votes
0 answers

ScalaPB and shading with SBT isn't working

I'm trying to get https://scalapb.github.io/">ScalaPB to work with Spark. In order to do this I need to shade my protocol buffers within SBT using code like below assemblyShadeRules in assembly := Seq( ShadeRule.rename("com.google.protobuf.**" ->…
Jon
  • 3,985
  • 7
  • 48
  • 80
2
votes
1 answer

Integrating avro into sbt workflow

I'm planning to use Avro schemas in my Scala-based project (built using sbt) and I'm trying to figure out the right way to include the Avro-based classes when building a far jar from my project (using sbt assembly). Following is the list of steps I…
jithinpt
  • 1,204
  • 2
  • 16
  • 33
2
votes
1 answer

sbt switch dependencies for runtime

I am developing a spark application which is using xgboost4j. https://github.com/dmlc/xgboost/tree/master/jvm-packages This package requires to be compiled to the local architecture due to local C dependencies of the jar. But the cluster has a…
Georg Heiler
  • 16,916
  • 36
  • 162
  • 292