sbt-assembly
Deploy über-JARs. Restart processes. (port of codahale/assembly-sbt) (by sbt)
sbt-native-packager
sbt Native Packager (by sbt)
Our great sponsors
sbt-assembly | sbt-native-packager | |
---|---|---|
6 | 5 | |
1,933 | 1,581 | |
0.1% | -0.1% | |
6.6 | 6.8 | |
about 1 month ago | 3 days 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.
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-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 2023-12-07.
-
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:
sbt-native-packager
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.
-
I had a great experience with Scala and hopefully it will get more popular
once you outgrow scala-cli, you should know sbt has a lot of plugins ( some might say it's ecosystem is the only thing keeping it relevant....) like sbt-native-packager which again does the heavy lifting for you
-
Asking for help to improve codepreview
So far, we have been working mainly with projects that use https://github.com/sbt/sbt-native-packager, still, projects building fat jars should also work smoothly.
-
I removed sbt-assembly and sbt-buildinfo from my project.
You should use sbt-jib. (You shouldn't use sbt-native-packager either, it doesn't work well in this regard: [1], [2].)
-
Why Scala is way slower than python ... and than Java too in leetcode?
As others have stated, this is mainly due to the nature of the JVM. You can try using GraalVM however, which basically complies JVM bytecode to native-code avoiding startup time issues, sbt-native-packager lets you do this quite easily.
-
SBT error when running package application: java.lang.RuntimeException: No main class detected.
IMO don't take any of this advice and use https://github.com/sbt/sbt-native-packager
What are some alternatives?
When comparing sbt-assembly and sbt-native-packager you can also consider the following projects:
coursier - Pure Scala Artifact Fetching
sbt-pack - A sbt plugin for creating distributable Scala packages.
sbt-release - A release plugin for sbt
sbt-native-image - Plugin to generate native-image binaries with sbt
sbt-docker - Create Docker images directly from sbt
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-buildinfo - I know this because build.sbt knows this.
sbt-jni - SBT Plugin to ease working with JNI
sbt-assembly vs coursier
sbt-native-packager vs sbt-pack
sbt-assembly vs sbt-release
sbt-native-packager vs sbt-native-image
sbt-assembly vs sbt-docker
sbt-native-packager vs coursier
sbt-assembly vs sbt-dependency-check
sbt-native-packager vs xsbt-web-plugin
sbt-assembly vs sbt-buildinfo
sbt-native-packager vs sbt-release
sbt-assembly vs sbt-pack
sbt-native-packager vs sbt-jni