Questions tagged [sbt-native-packager]

The sbt Native Packager is designed to package software built with the sbt build system into native packaging systems such as msi, deb, rpm, etc.

The sbt Native Packager is designed to bundle software built with the sbt build system into native packaging systems such as msi, deb, rpm, etc.

More information:

The git hub page for the software can be found here

360 questions
0
votes
1 answer

sbt-native-packager: How to create variants of a package e.g. with config extensions?

In a Play framework (2.3.x) Java project with sbt-native-packager (0.7.x), how can I create customer specific variants of .deb and .rpm packages? Binary packages (.deb, .zip) are created with generic settings. Some customers require specialties like…
hfs
  • 2,433
  • 24
  • 37
0
votes
1 answer

Exception during macro expansion with sbt-native-packager and ScalaFXML

I have a small project on github that I created to explore ScalaFx and a few other things I want to use on a bigger project. For now, it includes a single sub-project, which is a simple calculator written using ScalaFX and ScalaFXML. The project…
Cyäegha
  • 4,191
  • 2
  • 20
  • 36
0
votes
1 answer

sbt native packager: How to add a logrotate conf file to /etc/logrotate.d/myconf

I have : mappings in Universal ++= Seq( file("my-application/src/universal/etc/logrotate.d/my-application") -> "/etc/logrotate.d/my-application" ) But this puts it into /usr/share/my-application/etc/logroteate.d/my-application
0
votes
1 answer

Generated RPM produces ENOTTY error on Centos, when trying to start as a service

I have created a little application using the Play 2 Framework and tried to generate a RPM package for deployment to a centos server from this. I have added the current version of the sbt-native-packager to my…
Sönke
  • 51
  • 6
0
votes
1 answer

Can and should I use sbt and sbt-native-packager for non Java or Scala specific packaging of an RPM?

Like I could using Ant? I don't have to compile sources or create jars to make the RPM. If this is a good approach? How to I use sbt without language specific features?
zoosky
  • 25
  • 6
0
votes
1 answer

How to include additional dependencies when packaging an sbt app using sbt-native-packager

I am trying to include the breeze-natives dependency only when packaging the app (universal:packageBin and debian:packageBin) while always including the breeze dependency. Here is what I came up with : val breezeDependencySettings = { val…
Sami Dalouche
  • 654
  • 7
  • 15
0
votes
1 answer

Stop SBT Native Packager writing to /etc/

I am using the SBT Native Packager to build RPMs from a Scala project (written using Play Framework). The documentation for SBT Native Packager says: If you include a conf/ directory with configuration, this will show up as a symlink under…
colinjwebb
  • 4,362
  • 7
  • 31
  • 35
0
votes
1 answer

Couldn't package a cron job using sbt-native-packager when building a deb bundle

I am trying to package a cron as part of my debian package (https://github.com/indykish/megam_akka.git). The debian package is built using the sbt-native-packager. I placed the cron script inside my bin directory as here…
indykish
  • 31
  • 4
0
votes
1 answer

Compressing akka-sbt-plugin output directories to single tar (possibly with sbt-native-packager)?

My sbt file uses the akka-sbt-plugin to create the Akka microkernel in the target/-dist directory. That directory has sub-directories bin, config, deploy and lib. I would like to compress that directory into a single tarball. I have…
Sarge
  • 2,367
  • 2
  • 23
  • 36
0
votes
1 answer

simplify settings for deb only build with sbt native packager

I am trying to package my scala main app code as a .deb file. the app will only run on an ubuntu machine, so I do not really care about windows etc. Currently, I am struggling to find the most easiest way to compile the .deb using the simpliest…
magegu
  • 530
  • 4
  • 18
0
votes
1 answer

how to stop sbt package command from appending hash to the name of the jar

I cloned https://github.com/sbt/sbt-native-packager and then from sbt console ran "package" and it generated sbt-native-packager/target/scala-2.9.2/sbt-0.12/sbt-native-packager-0.6.3-dd499ad2b6d0cc108e89827196a32cc6c7a880b0.jar How do I stop it from…
Akhil
  • 538
  • 5
  • 13
-1
votes
0 answers

How to download dependencies in SBT from Azure blob storage

I am trying to pull dependencies from azure blob storage in my sbt project but it is unable to resolve the dependencies I tried below ways to pull the dependencies from blob storage By enabling the sftp protocol on blob storage the following way…
user13906258
  • 161
  • 1
  • 13
-1
votes
1 answer

SBT Native Packager Add File Using Docker Command

I'm using the SBT Native Packager to add a file from the local file system to the generated Dockerfile as below: dockerCommands += Cmd("ADD", "./data/housing.tgz /opt/docker/data/housing.tgz"), But for some wierd reasons, it fails with the…
joesan
  • 13,963
  • 27
  • 95
  • 232
-1
votes
2 answers

Created scala docker image using sbt native plugin. I have to add LDAP CA cert. How to add that in the image

Scala docker plug in creates the docket image but how to add LDAP CA certificate in the image. Is there any property to set the LDAP certificate. My application requires ldap authentication during login
Amit
  • 21
  • 3
-2
votes
1 answer

How to get git.gitTagToVersionNumber value?

I am using https://github.com/sbt/sbt-git and https://sbt-native-packager.readthedocs.io/en/stable/index.html and would like to assign the value of git.gitTagToVersionNumber to my docker container. I tried: git.useGitDescribe := true Docker /…
softshipper
  • 32,463
  • 51
  • 192
  • 400
1 2 3
23
24