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
5
votes
2 answers

SBT: Override setting in multi-build dependsOn/aggregate project

How do I override a sub-project setting/task in a multi-build SBT project? For example, here are two very simple SBT projects: ~/projects/backend/build.sbt name := "backend" // old version of scala scalaVersion :=…
Saad Malik
  • 1,598
  • 1
  • 18
  • 20
5
votes
2 answers

Send module version as command line argument to SBT

I am using TeamCity to run a bash script that is utilizing SBT Native Packager to publish an image to Docker. The sbt portion of the bash script looks something like this: sbt -DdockerRepository=$repo -DpackageName=$packageName -D…
Øyvind Holmstad
  • 1,379
  • 2
  • 13
  • 22
5
votes
2 answers

sbt native packager doesn't create scripts under target/universal/stage/bin

I'm trying to use JavaAppPackaging from sbt-native-packager. My understanding is, that when I run: sbt stage I should get a directory target/universal/stage/bin with some startup scripts. Now I only get lib which contains my jar and it's…
auramo
  • 13,167
  • 13
  • 66
  • 88
5
votes
2 answers

Don't publish a docker image for each SBT subproject

I have a multi-project SBT/Play2 app, and I need to publish a Docker image for the main project (which aggregate the others). The problem is that sbt-native-packager publish in my local repo an image for all PLAY projects. The root image works fine,…
5
votes
1 answer

Publish Debian package to Artifactory using sbt

I am using sbt-native-packager to create and publish Debian packages for my Scala Play 2 project to an Artifactory repository. So far, I am able to generate the .deb package, but I fail to get it published to the artifactory URL. The only artifact…
Krijn
  • 81
  • 7
5
votes
3 answers

Can sbt-native-packager generate multiple start scripts for one project?

I'm currently using sbt-native-packager to generate a start script for my scala application. I'm using packageArchetype.java_application. I create the script in sbt: sbt clean myproject/stage and then "install" the application by copying the…
Adam Mackler
  • 1,980
  • 1
  • 18
  • 32
5
votes
3 answers

Using sbt-native-packager, how can I simply prepend a directory to my bash script's ${app_classpath}?

My project uses sbt-native-packager with packageArchetype.java_application. During sbt stage I have a task that generates some final Typesafe style configuration file that I then copy to: target/universal/stage/conf/application.conf I'd like to…
bloo
  • 585
  • 1
  • 5
  • 15
5
votes
1 answer

Multiple project dependencies in SBT native packager

I am using the SBT native packager plugin (https://github.com/sbt/sbt-native-packager) for a project composed of multiple modules. In my SBT settings I have: lazy val settings = packageArchetype.java_application ++ Seq( ... // Java is required…
Adrien Aubel
  • 692
  • 1
  • 6
  • 15
4
votes
1 answer

Scala, docker - how to set mainClass in multimodule application using sbt-native-packager?

I have created a multimodule, sbt project in Scala. For now it is: main project (main-service) with build.sbt file http module with Main class In my sbt file I have: lazy val root = (project in file(".")) .aggregate(http) .settings( …
Developus
  • 1,400
  • 2
  • 14
  • 50
4
votes
1 answer

SBT: How to Dockerize a fat jar?

I'm building a Docker image with a fat jar. I use the sbt-assembly plugin to build the jar, and the sbt-native-packager to build the Docker image. I'm not very familiar with SBT and am running into the following issues. I'd like to declare a…
Abhijit Sarkar
  • 21,927
  • 20
  • 110
  • 219
4
votes
1 answer

SBT docker:publish authentication issue

I am Using SBT Native Packager to build Docker Image, and my build.sbt is : packageName in Docker := name.value version in Docker := version.value dockerBaseImage := "java" dockerRepository :=Some("index.docker.io/xyz") …
cpawali
  • 268
  • 3
  • 12
4
votes
2 answers

Sbt native packager not finding SystemdPlugin

I'm trying to get an rpm built that uses the Systemd archetype. However, I'm getting errors on my import in build.sbt. I am using sbt version 0.13.11 Specifically, I am seeing: build.sbt:3: error: object systemloader is not a member of package…
dmcnelis
  • 2,913
  • 1
  • 19
  • 28
4
votes
1 answer

How do I use the sbt-native-packager with multiple projects

I am in the process of merging several large scala projects into one. Currently they share code using cut and paste (not very much code) and I am making it so that there is a common utilities jar. Most of these projects are deployed on the amazon…
Stave Escura
  • 2,058
  • 1
  • 19
  • 24
4
votes
1 answer

Scala SBT - sbt-native-packager, how to specify custom stage directory

How can I specify custom staging directory for multi-project configuration? I'm using sbt-native-packager Below is the sketch of my multi module configuration. When I stage this project (sbt stage) the files are written to…
ak.
  • 3,329
  • 3
  • 38
  • 50
4
votes
1 answer

Running multiple applications with sbt

I have my directory structure set up as such. src/main/scala/main/Main.scala src/main/scala/scripts/MainScript.scala The script is a background job that will be running. I've used sbt-assembly before to package up the main file into a jar to be…
Petesta
  • 1,623
  • 3
  • 19
  • 29
1 2
3
23 24