{"repo":"scalameta/sbt-native-image","free":true,"listed":false,"github":"https://github.com/scalameta/sbt-native-image","clone":"git clone https://github.com/scalameta/sbt-native-image.git","description":"Plugin to generate native-image binaries with sbt","language":"Scala","stars":257,"topics":["native-image","sbt","scala","graalvm-native-image","graalvm","github-actions"],"license":null,"category":"media-processing","readme_excerpt":"Generate native-image binaries with sbt This plugin makes it easy to generate native-image binaries with sbt. Key features: - automatic GraalVM native-image installation powered by Coursier, no need to start sbt with a custom $JAVA HOME or spin up Docker. See One-click install for Scala for more details. - automatic support for Scala 2.12.12+ and 2.13.3+, no need to deal with issues like scala/bug#11634. - works with Scala 3 (Dotty) - get a notification when the binary is ready to use. - works on macOS, Windows and Linux. - works with Java 8 and Java 11. Overview: - Getting started - Configuration - Generate native-image from GitHub Actions - Comparison with sbt-native-packager Getting started First, add the sbt plugin to your build in project/plugins.sbt . Next, enable the plugin to your native-image application in build.sbt and configure the main class. Additionally, if your app uses reflection or JNI, you may need to run nativeImageRunAgent command to capture runtime information. For more details, see nativeImageRunAgent section. Finally, run the nativeImage task to generate the binary. Optionally, use nativeImageRun to execute the generated binary and manually test that it works as expected. Configuration sbt-native-image provides several settings, tasks and input tasks to customize native-image generation and to automate your native-image workflows. - nativeImage : generate a native image - nativeImageOptions : customize native image generation - nativeImageRun : execute","default_branch":null,"files":null,"tree":[],"storefront":"/r/scalameta","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/scalameta/sbt-native-image/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}