10,004 questions
0
votes
1
answer
61
views
sbt-native-packager not found when compiling [closed]
I'm currently getting the error below when trying to compile my SBT project. The artifact does exists here (https://repo1.maven.org/maven2/com/github/sbt/sbt-native-packager_2.12_1.0/1.11.4/), but the ...
1
vote
1
answer
59
views
Setting logLevel throws an exception
I attempted to start sbt with sbt -Dpact.logLevel=DEBUG and it threw a class-cast exception.
[error] (pactVerify) java.lang.ClassCastException: class org.apache.logging.slf4j.Log4jLogger cannot be ...
1
vote
0
answers
74
views
How to run sbt offline (downloading all the dependecies and moving)
I wanted to use riscv-torture project to create tests in a server that has no access to the internet. I firstly run it in my ubuntu 22.04 then copy .sbt .ivy2 .cache/coursier .cache/JPN folders to the ...
1
vote
0
answers
46
views
Get list of settings from another setting in SBT
I'm new to Scala and I'm having trouble wrapping my head around the following scenario - I want to have a centralized spot in build.sbt where we log the current profile and set certain values based on ...
0
votes
0
answers
24
views
How can I get a finally to work in sbt scripted plugin
I am writing some sbt code that adds files dynamically upon calling scripted. However, I need to clean up those files after it completes so that they are not checked into source by accident. The add ...
0
votes
0
answers
28
views
Play Framework 2.9 upgrade: getMinKeyLength method not found due to io.jsonwebtoken version conflict
I am upgrading my Play Framework project from version 2.8 to 2.9. As part of this, I upgraded my Java version to OpenJDK 17 and updated my build.sbt and plugins.sbt files accordingly.
The project ...
0
votes
1
answer
89
views
Migration to playframework 3.0 - Error while emitting Routes.scala
I try to migrate old playframework 2.8 to 3.0.8 (jdk 11 -> jdk 21).
And when try to compile: ./sbt clean compile see this error:
[error] Error while emitting Routes.scala
[error] assertion failed: ...
0
votes
2
answers
46
views
sbt sonaUpload does not use ArtifactID in deployment name
When uploading a release to Sonatype using sbt sonaUpload, the deployment that is created only includes the groupid/namespace and the version, but not the artifact ID.
As a result, the list of ...
0
votes
2
answers
98
views
sbt plugin resolvers not adding sbtVersion, scalaVersion to artifactory url
In an sbt project, I'm adding some plugins, like
addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.2")
This should resolve to an artifact url similar to this:
https://...
1
vote
1
answer
80
views
Referring to non-existent class while compiling to ScalaJS
I'm builing a ScalaJs & Scala3 application, when i run the npm run dev/build command I have the following error, and I'm not figuring out how to fix it:
Referring to non-existent class scala....
1
vote
1
answer
58
views
Does `sbt compile` install things out of the current project directory?
I am a noob in scala. I installed it using coursier and am using sbt to try and write code in it. Basically, I use the two commands sbt compile and sbt run for my code. Along, with that I was ...
0
votes
0
answers
43
views
How can I get SBT to render the character `─ ` in the prompt?
I'm trying to configure my SBT prompt to end with the characters └─→ in the terminal. I've overridden the shell prompt with the following code in ~/.sbt/1.0/global.sbt
shellPrompt := { state =>
&...
0
votes
2
answers
108
views
Spark (on Scala) replace gson version in Runtime
My sbt project has the following dependency configuration:
val scyllaConnector = "com.datastax.spark" %% "spark-cassandra-connector" % "3.2.0"
val sparkHadoopCloud = &...
0
votes
1
answer
92
views
SBT Java The system cannot find the path specified
I am getting the below error, tried various versions of java still I am getting the error
$ ./sbt compile
java.io.IOException: The system cannot find the path specified
at java.io.WinNTFileSystem....
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 ...