sbt-native-packager
v1.7.6
  • Introduction
    • Goals
    • Scope
    • Core Concepts
      • Format Plugins
      • Archetype Plugins
      • Mappings
      • Architecture
  • Getting Started
    • Setup
      • Native Tools
    • Your first package
      • Run the app
      • Create a package
  • Formats
    • Universal Plugin
      • Related Plugins
      • Requirements
      • Build
        • Required Settings
      • Configurations
      • Settings
      • Tasks
      • Customize
        • Universal Archive Options
        • Getting Started with Universal Packaging
        • Universal Conventions
        • Change/Remove Top Level Directory in Output
        • Skip packageDoc task on stage
        • MappingsHelper
        • Mapping Examples
    • Linux Plugin
      • Related Plugins
      • Build
        • Required Settings
      • Configurations
      • Settings
      • Customize
        • Package Mappings
        • The LinuxPackageMapping Models
        • Modifying Mappings in General
        • Add Mappings
        • Filter/Remove Mappings
        • Alter LinuxPackageMapping
        • Alter LinuxSymlinks
        • Add Empty Directories
        • Man Pages
    • Debian Plugin
      • Requirements
      • Build
        • Required Settings
        • JRE Dependencies
        • Native packaging
        • Java based packaging
      • Configurations
      • Settings
      • Tasks
      • Customize
        • Customizing Debian Metadata
        • Hook Actions into the Debian Package Lifecycle
        • Use a Different Castle Directory for your Control Scripts
    • Rpm Plugin
      • Requirements
      • Build
        • Required Settings
        • 1.0 or higher
        • 0.8 or lower
      • Configuration
      • Settings
        • Informational Settings
        • Dependency Settings
        • Meta Settings
        • Scriptlet Settings
        • SystemV Start Script Settings
      • Tasks
      • Customize
        • Rpm Prefix
        • rpmChangelogFile
        • Scriptlet Changes
        • Scriptlet Migration from 1.0.x
        • Jar Repackaging
        • Marking config files as noreplace
    • Docker Plugin
      • Requirements
      • Build
        • Required Settings
        • Spotify java based docker client
      • Configuration
      • Settings
        • Informational Settings
        • Environment Settings
        • Publishing Settings
      • Tasks
      • Customize
        • Docker Image Name and Version
        • Docker Base Image
        • Docker Repository
        • Docker Image Customization
        • Install Location
        • Daemon User
        • File Permission
        • Custom Dockerfile
        • Remove Commands
        • Add Commands
        • Write from Scratch
        • Busybox/Ash Support
    • Windows Plugin
      • Requirements
      • Build
        • Required Settings
        • 1.0 or higher
        • 0.8 or lower
      • Configuration
      • Settings
      • Tasks
      • Customize
        • Feature configuration
    • JDKPackager Plugin
      • Requirements
      • Enabling
      • Build
      • Settings
      • Example
      • Debugging
    • GraalVM Native Image Plugin
      • Requirements
        • native-image quick installation
      • Build
        • Required Settings
      • Settings
        • native-image Executable Command (Pay attention if you are using Windows OS)
        • Docker Image Build Settings
        • Publishing Settings
      • GraalVM Resources
      • Tasks
  • Archetypes
    • Java Command Line Application
      • Features
      • Usage
      • Settings & Tasks
      • Start script options
      • Multiple Applications
        • Multiple start scripts
        • Single start script with forwarders
        • A note on script names
      • Customize
        • Application and runtime configuration
        • Start script customizations
        • Overriding Templates (Bash/Bat)
    • Java Server Application
      • Features
      • Usage
      • Settings & Tasks
      • Default Mappings
      • Customize
        • Application Configuration
        • Systemloader Configuration
        • Package Lifecycle Configuration
        • Example Configurations
    • Systemloaders
      • Overview
        • General Settings
      • SystemV
      • Systemd
        • Settings
      • Upstart
      • Customization
        • Start Script Location
        • Customize Start Script
        • Override Start Script
    • Configuration Archetypes
      • AshScript Plugin
      • ClasspathJar & LauncherJar Plugin
    • Jlink Plugin
      • Known issues
      • Further reading
    • An archetype cheatsheet
      • Path Configurations
        • Quick Reference Table
        • Settings
      • JVM Options
        • Extra Defines
        • File - application.ini or etc-default
        • Setting - javaOptions
      • Overriding Templates
        • Bat Script - src/templates/bat-template
        • Bash Script - src/templates/bash-template
        • Service Manager Templates
        • Server App Config - src/templates/etc-default-{systemv,systemd}
  • Recipes
    • Custom Package Formats
      • SBT Assembly
      • Proguard
      • Multi Module Builds
      • Custom Packaging Format
    • Dealing with long classpaths
      • Generate a launcher jar
      • Generate a classpath jar
      • Configure a wildcard classpath
    • Play 2 Packaging
      • Build Configuration
      • Application Configuration
        • SystemV
    • Deployment
      • Setup publish Task
      • Default Deployment
      • Custom Deployments
        • RPM
        • Debian
        • Windows
      • Custom Configurations
        • Debian
        • RPM
        • Windows
        • Universal
    • Scala JS packaging
      • Package webjars and scalajs resources
    • Build the same package with different configs
      • SBT sub modules
      • SBT parameters and Build Environment
      • SBT configuration scope (not recommended)
    • Embedding JVM in Universal
      • Adding the JVM
      • Application Configuration
    • Setting the umask for your process
      • Within the start script
      • System V/systemd
sbt-native-packager
  • Docs »
  • Recipes
  • Edit on GitHub

Recipes¶

This section provides recipes for common configurations. If you can’t find what you are looking for, take a look at sbt-native-packager examples github page.

  • Custom Package Formats
  • Dealing with long classpaths
  • Play 2 Packaging
  • Deployment
  • Scala JS packaging
  • Build the same package with different configs
  • Embedding JVM in Universal
  • Setting the umask for your process
Next Previous

© Copyright 2014 sbt-native-packager team Revision 2e773288.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: v1.7.6
Versions
latest
stable
v1.7.6
v1.7.5
v1.7.4
v1.7.3
v1.7.2
v1.7.1
v1.7.0
v1.6.2
v1.6.1
v1.6.0
v1.5.2
v1.5.1
v1.4.0
v1.3.25
v1.3.22
v1.3.18
v1.3.15
v1.3.9
v1.3.8
v1.3.7
v1.3.6
v1.3.5
v1.3.4
v1.3.3
v1.3.2
v1.3.0
v1.2.2
v1.2.1
v1.2.0
v1.1.6
v1.1.5
v1.1.4
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v0.7.0-rc1
0.6
0.4.1
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.