Git Product home page Git Product logo

esarbe / sbt-native-packager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sbt/sbt-native-packager

0.0 1.0 0.0 16.38 MB

sbt Native Packager

Home Page: https://sbt-native-packager.readthedocs.io/en/stable/

License: BSD 2-Clause "Simplified" License

Scala 94.43% Shell 3.56% Makefile 0.01% CSS 0.01% Python 1.62% HTML 0.09% JavaScript 0.02% C 0.01% Roff 0.05% Dockerfile 0.01% Java 0.20%

sbt-native-packager's Introduction

SBT Native Packager

Build Status Build status Codacy Badge Download Join the chat at https://gitter.im/sbt/sbt-native-packager Documentation Status

Native Packager Logo

Goal

SBT native packager lets you build application packages in native formats. It offers different archetypes for common configurations, such as simple Java apps or server applications.

Issues/Discussions

  • Discussion/Questions: If you wish to ask questions about the native packager we're active on Stack Overflow. You can either use the sbt tag or the sbt-native-packager tag. They also have far better search support for working around issues.

  • Docs: Our docs are available online. If you'd like to help improve the docs, they're part of this repository in the src/sphinx directory. ScalaDocs are also available.

    The old documentation can be found here

  • Issues/Feature Requests: Finally, any bugs or features you find you need, please report to our issue tracker. Please check the compatibility matrix to see if your system is able to produce the packages you want.

Features

  • Build native packages for different systems
    • Universal zip,tar.gz, xz archives
    • deb and rpm packages for Debian/RHEL based systems
    • dmg for macOS
    • msi for Windows
    • docker images
    • graalvm native images
  • Provide archetypes for common use cases
  • Java8 jdkpackager wrapper
  • Java11 jlink wrapper
  • Optional JDeb integration for cross-platform Debian builds
  • Optional Spotify docker client integration

Installation

Add the following to your project/plugins.sbt file:

// for autoplugins
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.7.6")

In your build.sbt enable the plugin you want. For example the JavaAppPackaging.

enablePlugins(JavaAppPackaging)

Or if you need a server with autostart support

enablePlugins(JavaServerAppPackaging)

Build

If you have enabled one of the archetypes (app or server), you can build your application with

sbt <config-scope>:packageBin

Examples

# universal zip
sbt universal:packageBin

# debian package
sbt debian:packageBin

# rpm package
sbt rpm:packageBin

# docker image
sbt docker:publishLocal

# graalvm image
sbt graalvm-native-image:packageBin

Read more in the specific format documentation on how to configure and build your package.

Documentation

There's a complete "getting started" guide and more detailed topics available at the sbt-native-packager site.

Please feel free to contribute documentation, or raise issues where you feel it may be lacking.

Contributing

Please read the contributing.md on how to build and test native-packager.

Related SBT Plugins

These are a list of plugins that either use sbt-native-packager, provide additional features or provide a richer API for a single packaging format.

Maintainers

  • Nepomuk Seiler (@muuki88)
  • Alexey Kardapoltsev (@kardapoltsev)
  • Derek Wickern (@dwickern)
  • Felix Satyaputra (@fsat)

Credits

sbt-native-packager's People

Contributors

antonini avatar aparkinson avatar artempyanykh avatar dhardy92 avatar dwhjames avatar dwickern avatar eed3si9n avatar ezzarghili avatar fiadliel avatar fsat avatar huntc avatar ivanfrain avatar jan0sch avatar jkutner avatar jroper avatar jsuereth avatar kardapoltsev avatar kodemaniak avatar mhamrah avatar mkurz avatar muuki88 avatar myyk avatar nazoking avatar nequissimus avatar nigredo-tori avatar rfranco avatar scalawilliam avatar spigene avatar xuwei-k avatar yanns avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.