Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You can just pull in the settings that are relevant to you from:</p> <p><a href="https://github.com/sbt/sbt-native-packager/blob/master/src/main/scala/com/typesafe/sbt/packager/archetypes/JavaServerApplication.scala#L24" rel="nofollow">https://github.com/sbt/sbt-native-packager/blob/master/src/main/scala/com/typesafe/sbt/packager/archetypes/JavaServerApplication.scala#L24</a></p> <p>and</p> <p>So, this should be something like:</p> <pre><code>import com.typesafe.sbt.packager.archetypes._ packagerSettings mapGenericMappingsToLinux JavaAppPackaging.settings JavaServerAppPackaging.debianSettings </code></pre> <p>caveat the correct imports. Let's cover what each of these do:</p> <ol> <li><code>packagerSettings</code> adds the basic "flow" of the packager tasks, but does not configure any of the files or settings</li> <li><code>mapGenericMappingsToLinux</code> is the hook which will take everything configured in <code>mappings in Universal</code> and attempt to make it linux friendly for linux packages.</li> <li><code>JavaAppPackaging.settings</code> will take your build definition, and automatically fill out the <code>mappings in Universal</code> configuration with defaults for your application.</li> <li><code>JavaServerAppPackaging.debianSettings</code> adds additional settings specifically for debian such that the bundled default application can be started as a server.</li> </ol> <p>One of the goals of the plugin is to allow you the flexibility to use any of these "mappings" and get default behavior or override. It's just not well documented how. I hope this helps!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload