sbt-assembly VS sbt-native-packager

Compare sbt-assembly vs sbt-native-packager and see what are their differences.


Deploy ├╝ber-JARs. Restart processes. (port of codahale/assembly-sbt) (by sbt)
Our great sponsors
  • - Learn 300+ open source libraries for free using AI.
  • WorkOS - The modern API for authentication & user identity.
  • InfluxDB - Power Real-Time Data Analytics at Scale
sbt-assembly sbt-native-packager
6 5
1,931 1,583
0.3% 0.3%
6.2 5.9
29 days ago 1 day ago
Scala Scala
MIT License BSD 2-clause "Simplified" License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.


Posts with mentions or reviews of sbt-assembly. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-07.
  • Trouble with sbt-native-packager
    2 projects | /r/scala | 7 Dec 2023
    sbt-assembly is still my go-to. So what I'd prefer is the combination of sbt-assembly (to build my .jar that I can just java -jar anytime I want) and sbt-jib (to construct my OCI image including my assembly .jar for deployment in some container orchestration environment).
  • SBT error when running package application: java.lang.RuntimeException: No main class detected.
    3 projects | /r/scala | 9 Jun 2021
    You may also use sbt-assembly to produce an uber JAR that embeds the Scala stdlib together with your code, which means that now for running your program you only need a JRE like java -jar app-assembly.jar. This option is great because now if you start adding dependencies to your project those are also included in this massive JAR.
  • Welcome to JAR Hell, Part 2: Deployment Strategies
    2 projects | /r/scala | 15 Apr 2021
    Sbt-assembly defaults to silently concatenating configs. But even if it didn't, the configs wouldn't be in any particular order when resolving.
  • Building native images and compiling with GraalVM and sbt
    3 projects | | 7 Oct 2020
    With the sbt-assembly plugin you can create JAR-files with all of its dependencies (fat JARs). sbt assembly creates this target/scala-2.12/apply-at-vdb-assembly-0.1.0-SNAPSHOT.jar which has a size of around 42MB:


Posts with mentions or reviews of sbt-native-packager. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-11.

What are some alternatives?

When comparing sbt-assembly and sbt-native-packager you can also consider the following projects:

sbt-pack - A sbt plugin for creating distributable Scala packages.

sbt-native-image - Plugin to generate native-image binaries with sbt

coursier - Pure Scala Artifact Fetching

sbt-release - A release plugin for sbt

sbt-docker - Create Docker images directly from sbt

sbt-buildinfo - I know this because build.sbt knows this.

sbt-dependency-check - SBT Plugin for OWASP DependencyCheck. Monitor your dependencies and report if there are any publicly known vulnerabilities (e.g. CVEs). :rainbow:

xsbt-web-plugin - Servlet support for sbt

sbt-jni - SBT Plugin to ease working with JNI

ScalaKata2 - Interactive Playground