sbt-jni
SBT Plugin to ease working with JNI (by sbt)
sbt-native-packager
sbt Native Packager (by sbt)
Our great sponsors
sbt-jni | sbt-native-packager | |
---|---|---|
3 | 5 | |
123 | 1,581 | |
0.8% | -0.1% | |
7.6 | 6.8 | |
19 days ago | 4 days ago | |
Scala | Scala | |
BSD 3-clause "New" or "Revised" 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-jni
Posts with mentions or reviews of sbt-jni.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-10-05.
-
Calling C code from Scala
I encourage you to go with sbt-jni, it also supports Rust/Cargo now ;)
-
Native code access from scala 3 without using Graal
Besides JNA, there's also sbt-jni or you can wait for Project Panama to deliver.
- sbt-jni 1.5.0 has been released: Notably support for Rust/Cargo and Scala 3. Using JNI from Scala has never been easier!
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-jni and sbt-native-packager you can also consider the following projects:
bazel-multiversion - Bazel rules to resolve, fetch and manage 3rdparty JVM dependencies with support for multiple parallel versions of the same dependency. Powered by Coursier.
sbt-assembly - Deploy über-JARs. Restart processes. (port of codahale/assembly-sbt)