sbt-docker
Create Docker images directly from sbt (by marcus-drake)
sbt-assembly
Deploy über-JARs. Restart processes. (port of codahale/assembly-sbt) (by sbt)
sbt-docker | sbt-assembly | |
---|---|---|
- | 7 | |
733 | 1,953 | |
0.0% | 0.1% | |
6.9 | 6.5 | |
5 months ago | 2 months ago | |
Scala | Scala | |
MIT License | MIT 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.
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.
sbt-docker
Posts with mentions or reviews of sbt-docker.
We have used some of these posts to build our list of alternatives
and similar projects.
We haven't tracked posts mentioning sbt-docker yet.
Tracking mentions began in Dec 2020.
sbt-assembly
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 2025-03-26.
-
Evolving Scala
> If anyone care to share their experience with GraalVM's native-image, I'd be interested in hearing that.
The main issue is if you are using reflection, which needs metadata adding to describe it so the necessary metadata is included in the image. Some libraries already have it built in, and there are tools to help.
For building, https://github.com/sbt/sbt-assembly supports native Image.
-
Trouble with sbt-native-packager
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-assembly 2.0.0-RC1 released
-
SBT error when running package application: java.lang.RuntimeException: No main class detected.
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
Sbt-assembly defaults to silently concatenating configs. But even if it didn't, the configs wouldn't be in any particular order when resolving.
-
How to handle sbt deduplication errors on module-info.class files
Ticket of record is https://github.com/sbt/sbt-assembly/issues/391
-
Building native images and compiling with GraalVM and sbt
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:
What are some alternatives?
When comparing sbt-docker and sbt-assembly you can also consider the following projects:
coursier - Pure Scala Artifact Fetching
sbt-native-packager - sbt Native Packager
sbt-revolver - An SBT plugin for dangerously fast development turnaround in Scala
sbt-buildinfo - I know this because build.sbt knows this.
sbt-sonatype - A sbt plugin for publishing Scala/Java projects to the Maven central.
sbt-release - A release plugin for sbt