366 questions
1 vote
1 answer
363 views
Fix missing transnitive dependencies with jlink and scala3 `scala.quoted -> scala `
I'm trying to upgrade a scala library to scala3 and cannot seem to figure out how to get the scala3 language to work with jlink. It says I'm missing transitive dependencies on a jlink build. You can ...
1 vote
0 answers
49 views
sbt dependencyTree shows unexpected test dependency
sbt dependencyTree unexpectedly includes projects that are depended on with scope Test, which should not happen. Starting with a barebones project like this: name := "root" ThisBuild / ...
0 votes
1 answer
144 views
What is the difference between Cmd and ExecCmd in Docker/SBT?
In the sbt-native-packager Docker plugin, what is the difference between these directives? And how do we combine Cmd/ExecCmd with RUN/ENTRYPOINT/CMD? For example, I am trying to add git to my docker ...
1 vote
0 answers
66 views
How to completely ignore test compilation in stage?
I'm running $ sbt 'allImages / Docker / stage' command on following configuration: lazy val allImages = project .in(file("build/all-images")) .aggregate(p1, p2) .settings( ...
0 votes
1 answer
66 views
sbt-native-packager fails with dpkg-deb error
I am getting an error when trying to deploy sbt project using the sbt-native-packager. I have used the packager for years, but in previous projects it is an older version. I am using version 1.9.7, ...
0 votes
1 answer
49 views
Is `daemonUser` really the correct owner of the `defaultLinuxInstallLocation` files?
Using the DockerPlugin with the defaults, the image is created with a WORKDIR of /opt/docker, and all the files under it are owned by demiourgos728. The user is not a system user because that's "...
1 vote
2 answers
582 views
how to increase max memory usage in build.sbt
I have a build.sbt file that looks something like this lazy val `tokens-service` = (project in file("modules/some-service")) .configure(commonSettings) .enablePlugins(...) .settings( ...
0 votes
2 answers
483 views
How to install apt-get dependencies in Docker image using sbt-native-packager plugin [duplicate]
I am using the sbt-native-packager plugin to generate a Docker image for a Scala project. The project requires a specific package libnetcdf.so to be installed on the image. I am using the below ...
1 vote
0 answers
610 views
Getting error Error response from daemon: failed to create shim task: OCI runtime create failed (permission denied: unknown), while creating container
I'm using Intellij Idea to create an image using docker plugin (sbt-native-packager). Creating an Image by Running the command in sbt-shell. sbt> docker:publishlocal The Image created successfully(...
1 vote
1 answer
238 views
"sbt stage" does not do anything
I'm facing an issue while trying to generate a universal folder using the 'sbt stage' command. I have a Scala project with the following build.sbt file: name := "hod.btlg" version := "...
1 vote
1 answer
565 views
sbt native package manager custom dockerfile:E: Command line option 'O' [from -O] is not understood in combination with the other options
i have an akka-http project i am using sbt-native package manager for creating a dockerfile for it and i need to add some additional commands in my dockerfile for that i am referring to the example ...
0 votes
1 answer
705 views
Unable to make docker image using sbt-native-packager
I'm learning to make docker image of scala application using sbt-native-packager. My application contains akka-http and running fine on localhost:8080 (scala-version: 2.13.1, sbt-version: 1.2.8). Now ...
0 votes
1 answer
215 views
(Extracting structure failed: Build status: Error) Unable to import plugin to scala in plugins.sbt file
I'm trying to use sbt-native-packager to make Docker Image of scala project. I have to add sbt-native-packager plugin. For that, I've created "plugins.sbt" file in book_system_task/project/...
2 votes
0 answers
82 views
SBT Dynamic Project Dependency
I recently need to integrate some projects as submodules, and each of them has its own build.sbt. And there are also dependencies between submodules. Therefore, I need to dynamically convert the ...
1 vote
0 answers
138 views
Set mainClass for sbt native packager Universal
I have a project that has the following build.sbt: addCommandAlias("package", "dist") lazy val actual = (project in file(".")) .enablePlugins(UniversalPlugin, ...