Questions tagged [sbt]
sbt is an open source build tool for Scala and Java projects, similar to Java's Maven or Ant.
9,963
questions
0
votes
0
answers
38
views
Scala project: sbt compile generates empty fs2-grpcs folder, missing proto-generated classes
I'm working on a Scala project that currently implements a simple REST API. I'm trying to add a new gRPC service to this project. However, I'm encountering an issue during compilation.
Issue:
When I ...
1
vote
1
answer
39
views
Scala failed to install on Windows 10
I used this site to install Scala on latest version of Windows 10 Pro. The installer started and successfully completed the following steps (shown at the end below). At the end, command window asked: ...
-1
votes
0
answers
56
views
Scala/SBT/Java - When running app locally with java 21 getting InaccessibleObjectException
Hi all I am using scala version 2.12.18, sbt version 1.9.0 and java jdk 21.0.3. When trying to run my application locally through
sbt run -Dconfig.resource=local-qa.conf
I am getting this error:
[...
2
votes
1
answer
100
views
Test/compile not finding lib/jar with Scala 3 (but 2.13 works)
I'm packaging jars from generated source code with an sbt-plugin and the jars are fine and on the classpath.
Now I have two identical minimal projects targeting Scala 2.13 and 3.3. With 2.13 I can run ...
-3
votes
0
answers
48
views
Why do i keep getting an error when running sbt?
I want to run a bot on windows. I'm trying to run sbt in cmd. I installed sbt and java 22 x64 MSI Installer. I ran sbt but i keep getting an error. I think maybe this has to do with java so i ...
2
votes
0
answers
30
views
Unable to make kubernetes deployment using sbt-kubeyml
I'm trying to create deployment.yaml file using sbt-kubeyml.
I'm using scala 2.13.4 and sbt 1.9.6.
First I have created simple project in scala, with simple akka http get route. Then I have created ...
0
votes
0
answers
37
views
For any given project built using SBT, is there any way, by creating a plugin/other ways, to get and STORE the details of modules and dependencies
I have a sample SBT built JAVA project Apache Pekko v1.0.0
https://github.com/apache/pekko/tree/v1.0.0
I need to setup automation in such a way that I get the name of the modules in this project, or ...
0
votes
0
answers
30
views
Jenkins pipeline using sbt docker image | -u sbtuser causes job to get stuck
I am trying to create a Jenkins pipeline to build a sbt project. Currently, I am trying to use docker-sbt to run one sbt test stage.
The github project tells me to use sbtuser to run container as non-...
0
votes
0
answers
23
views
Continuously compile multiple configurations in sbt
I can execute multiple tasks with IT/compile; Test/compile in sbt shell but how to run it continuously?
~IT/compile; ~Test/compile fails because it starts them separately:
Tried to start new watch ...
1
vote
0
answers
25
views
Exclude by tag annotation not working for scalatestplus TestNGSuite in Java
I am trying to build a SBT project which will encompass both unit and end-to-end tests, and will support tests being written in both Scala (extending standard Scalatest suites, e.g. AnyFlatSpec) and ...
0
votes
0
answers
52
views
Scala Native + AKKA HTTP issue
I would like to use Scala Native for my backend server to run some code, which are writen in C.
But when I enabled the scala native plugin in the build.sbt, I got errors during nativeLink.
my build....
0
votes
0
answers
57
views
How to set up Scala(Metals) with WSL
I'm trying to use VSCode as an IDE to develop Scala applications in an environment with WSL.
I installed Scala(Metals), but it doesn't work and has no VSCode intellisense feature.
error details
When I ...
0
votes
1
answer
25
views
How to handle clashing plugins generating code in SBT project?
I am stuck on a problem with my Scala SBT (1.7.2) project.
Situation:
I already have working configuration to generate code from *.avsc, *.avdl files via "com.julianpeeters" % "sbt-...
1
vote
0
answers
38
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(
...
1
vote
1
answer
63
views
Try to compile and install rocket-chip generator but scala reports a constant pool index error
Here is the bug report:
macros.compile scala.reflect.internal.FatalError:
bad constant pool index: 0 at pos: 48461
while compiling: <no file>
during phase: globalPhase=<no ...