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

330 questions
36
votes
1 answer

How to disable ScalaDoc generation in dist task in Play 2.2.x (using project/build.scala)?

Adding the following settings to the build.sbt file of a Play 2.2.x app does not disable Scaladoc generation. How can it be disabled? play.Project(appName, appVersion, appDependencies) .settings(scalaVersion := "2.10.3") …
Max L.
  • 8,994
  • 12
  • 49
  • 80
18
votes
2 answers

What does sbt-native-packager's docker:publishLocal do?

The docs say: To build an image and store it in the local Docker server, use docker:publishLocal I'm just getting started with Docker and am not familiar with the concept of a "local Docker server". What is that and where should I look for the…
Ben McCann
  • 16,431
  • 22
  • 74
  • 96
18
votes
3 answers

Use cases for different sbt Key operators

The documentation for sbt seems to be really lacking here, so I'd like to get a definitive answer on this: what is the difference between "+=", "++=", "<+=", "<++=", and "<<=" when operating on Keys?
Jeff
  • 227
  • 1
  • 6
16
votes
5 answers

ADD/COPY files with sbt-native-packager's docker support

I'm using sbt-native-packager 1.0.0-M5 to create my docker image. I need to add a file that's not a source file or in the resource folder. My docker commands are as follows: dockerCommands := Seq( Cmd("FROM", "myrepo/myImage:1.0.0"), Cmd("COPY",…
Andreas Du Rietz
  • 1,051
  • 9
  • 16
15
votes
3 answers

Sequencing and overriding tasks in SBT

Quick summary: I'm trying to wait in the top-level project for all SBT submodules to build, then remove their target directories. Top-level application aggregates all submodules, they won't be deployed separately but only as a bundle with classpath…
Patryk Ćwiek
  • 13,285
  • 3
  • 50
  • 74
11
votes
1 answer

Conditionally include provided scope dependencies with sbt and the universal plugin

I have a project that is a scala & scalatra API. I have two distributables that I build with sbt-native-packager - RPM & DEB install for on-premise installations heroku install for cloud installations I'm currently using provided scope…
lucas
  • 6,828
  • 4
  • 31
  • 34
11
votes
2 answers

Organizing multiple scala interrelated sbt & git projects - best practice suggestions

With scala, using sbt for builds and git for version control, what would be a good way of organizing your team code when it outgrows being a single project? At some point, you start thinking about separating your code into separate libraries or…
matanster
  • 13,785
  • 14
  • 75
  • 135
9
votes
2 answers

Why does sbt-native-packager generate no bin directory?

Today I integrated sbt-native-packager into my scala project, mostly to generate handy execution scripts and/or packages. Now, I added to my build.sbt line: packageArchetype.java_application and to my plugins.sbt resolvers += "sbt-plugins" at…
Andna
  • 6,239
  • 12
  • 65
  • 119
8
votes
2 answers

Why is my Docker image of my Play Framework for Scala app not starting with an AccessDeniedException?

Problem My project builds just fine using sbt docker:publish or sbt docker:publishLocal, but when I go to run the image, it fails with the following stack trace: eleanor@demo-machine:~/workbench/opendar/opendar$ docker run…
Eleanor Holley
  • 506
  • 1
  • 4
  • 18
8
votes
1 answer

add sbt-web resources jar to classpath of sbt-native-packager

I have a multi-project build and I'm trying to add the jar with assets generated by sbt-web to the classpath of the launch script The project I'm interested in is called website. typing show website/web-assets:packageBin in sbt creates and shows the…
Martijn
  • 11,183
  • 10
  • 46
  • 92
8
votes
2 answers

Why does "sbt stage" fail with Not a valid command?

I am getting errors when I try to stage my application using sbt clean compile stage: [error] Not a valid command: stage [error] Not a valid project ID: stage [error] Expected ':' (if selecting a configuration) [error] Not a valid key: stage [error]…
ovo
  • 418
  • 4
  • 14
8
votes
4 answers

Add specific directory and its content to Universal target

I am switching from maven to sbt for a Scala project I am working on. I used to work with the maven assembly plugin where you can map any directory in the workspace to a target directory in the assembly. I didn't find any equivalent in…
ifrain
  • 211
  • 2
  • 9
7
votes
1 answer

Create assembly jar that contains all tests in SBT project+subprojects

I have an interesting problem where I basically need to create a .jar (plus all of the classpath dependencies) that contains all of the tests of an SBT project (plus any of its subprojects). The idea is that I can just run the jar using java -jar…
mdedetrich
  • 1,809
  • 13
  • 29
7
votes
1 answer

How to make sbt-native-packager refrain from putting my resources into a jar file?

I'm using the sbt-native-packager plugin to generate a start script for my application, which is very convenient as this plugin generates the correct classpath specification with all my library dependencies. I am not distributing this applictaion,…
Adam Mackler
  • 1,818
  • 15
  • 32
7
votes
2 answers

Publish zip created by sbt-native-packager

I am trying to publish to a repository the zip file generated by the sbt-native-packager plugin through universal:packageBin task. I configured my project like this: publishTo := Some("Repo" at "http://repo") publishMavenStyle :=…
JLM
  • 123
  • 1
  • 6
1
2 3
21 22