Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
77 views

I'm working with an SBT build that has reduced some of its logging, since it's generating overly large build output in our CI environment: ThisBuild / logLevel := sbt.Level.Warn Ideally, I would like ...
M. Justin's user avatar
  • 23.6k
Advice
1 vote
4 replies
68 views

I'm willing to progress into the subject of introducing java modules into Apache Spark. They are needed for: sorting and avoiding conflicts between dependencies. allow Spark modules to be integrated ...
Marc Le Bihan's user avatar
4 votes
0 answers
124 views

I saw one problem during project upgrade. Before upgrade setup: Java - 1.8 Scala - 2.12 sbt - 1.5.0 sbt-jacoco - 3.1.0 Overall test coverage in SonarQube: ~72% After upgrade: Java - 17 Scala - ...
ppllaxxa's user avatar
1 vote
1 answer
79 views

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 ...
Troy Daniels's user avatar
  • 3,720
1 vote
0 answers
96 views

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 ...
Ömer GÜZEL's user avatar
1 vote
0 answers
56 views

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 ...
Dzeri96's user avatar
  • 462
0 votes
0 answers
27 views

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 ...
Justin Pihony's user avatar
0 votes
0 answers
37 views

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 ...
Natraj's user avatar
  • 417
0 votes
1 answer
107 views

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: ...
tostao's user avatar
  • 3,108
0 votes
2 answers
52 views

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 ...
JeanMarc's user avatar
  • 326
0 votes
2 answers
120 views

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://...
javierhe's user avatar
  • 573
0 votes
1 answer
99 views

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....
Ghignatti Nicolò's user avatar
1 vote
1 answer
64 views

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 ...
Dhruv's user avatar
  • 619
0 votes
0 answers
49 views

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 => &...
cheezsteak's user avatar
  • 2,945
0 votes
2 answers
123 views

My sbt project has the following dependency configuration: val scyllaConnector = "com.datastax.spark" %% "spark-cassandra-connector" % "3.2.0" val sparkHadoopCloud = &...
Jelly's user avatar
  • 1,434
0 votes
1 answer
99 views

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....
jacob paul's user avatar
1 vote
1 answer
406 views

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 ...
Chris Stewart's user avatar
0 votes
1 answer
152 views

I'm new to Scala and the @nowarn system seems a little bit confusing. I've tryed to remove lint errors on Function1 and Function2 with nowarn, but it didn't work. So, here's this programm: import ...
Nikita Shadkov's user avatar
1 vote
0 answers
92 views

One of our teams using SBT is moving to run their build in a self hosted Github runner, and it's now failing while running the tests with this error : [106.424s][warning][os,thread] Failed to start ...
Vincent F's user avatar
  • 7,523
1 vote
0 answers
84 views

With scala version 2.13.16 and "com.typesafe" "config" version "1.4.3" I'm trying to configure application with following application.conf file: performances = { ...
Jelly's user avatar
  • 1,434
1 vote
0 answers
69 views

Project is configured in build.sbt file: ThisBuild / version := "0.1.0-SNAPSHOT" ThisBuild / scalaVersion := "2.13.16" lazy val root = (project in file(".")) .settings( ...
Jelly's user avatar
  • 1,434
1 vote
0 answers
33 views

(avro % Runtime).excludeAll( ExclusionRule(organization = "com.fasterxml.jackson.core"), ExclusionRule(organization = "org.apache.commons"), ExclusionRule(...
Kristopher Kane's user avatar
1 vote
3 answers
125 views

I'm setting up a build.sbt where I need to have a bunch of managed JARs on the classpath. I basically have two large folders containing all of the JARs and then also the source JARs. myManagedRoot |- ...
Alec's user avatar
  • 32.6k
2 votes
0 answers
74 views

I have a Scala library, lets call it extensions, with extension methods declared in package extensions. It is evolving relatively quickly; lets say that version 1.1 adds new extension methods to 1.0, ...
Turin's user avatar
  • 2,321
0 votes
0 answers
88 views

I tried to build project with http4s dependencies for Scala versions 2.13.0 and 2.13.16 with combinations of JDK 8 and 11 Versions are: val http4sVersion = "1.0.0-M44" libraryDependencies ++...
Jelly's user avatar
  • 1,434
0 votes
0 answers
57 views

I've had this issue in a project of mine and I've setup a minimal example reproducing the issue, it took me a while to figure out the problem. But it seems that when I set Test / envVars in my build....
Björn Pedersen's user avatar
0 votes
0 answers
106 views

I have a Play Framework 3.0.5 project on which I needed to update a module which has a requirement for jackson-databind version 2.17.0. Since get the following error, and don't seem to be able to find ...
Luuk D. Jansen's user avatar
0 votes
1 answer
66 views

I am a Scala beginner, having some initial issues with classpaths which I think may stem from sbt. play.api.PlayException: Execution exception[[InjectionException: Injection error, interface my....
david sundström's user avatar
0 votes
1 answer
182 views

I want to define a CLI command in build.sbt and want it to be executed when I run the sbt command from the shell script. For example: I have already included sbt-bloop plugin in my scala-sbt project. ...
Anish B.'s user avatar
  • 17.3k
0 votes
1 answer
89 views

After upgrading flyway-sbt from 7.4.0 to 9.22.0 the sbt flywayMigrate command now hangs, e.g. | => root / flywayMigrate {x}s . In our migration scripts, we are creating the indexes concurrently. ...
Orion's user avatar
  • 1
1 vote
0 answers
88 views

We're attempting to upgrade our Scala app from 2.12.20 to 2.13.0 but as soon as we do, we get the following error when trying to compile: [error] (update) org.xml.sax.SAXParseException; lineNumber: 1; ...
xeob321's user avatar
  • 11
0 votes
1 answer
123 views

I am building a certain job which is using flyway-sbt. the weird thing that the job is running locally but failed in jenkins and the error message is: [warn] Note: Some unresolved dependencies have ...
Mohammed's user avatar
0 votes
1 answer
54 views

We have our Playframework tests setup with fakeApplication using GuiceApplicationBuilder class BaseSpec extends AnyFunSpec/PlaySpec with GuiceOneAppPerSuite { override def fakeApplication(): ...
P-Man-Coding's user avatar
0 votes
0 answers
73 views

I am trying to replicate one Java project in Scala and SBT. For some reason, copying Runtime / managedClasspath into target/libs folder also copies scala-library-2.13.15.jar beside scala3-library_3-3....
Anton Feoktistov's user avatar
0 votes
1 answer
65 views

I want to publish a new version of my functional logger in Scala ("Flog"). The changes to the code are relatively minor. I've upgraded some dependencies, including to Scala 2.13.16. I haven'...
Phasmid's user avatar
  • 953
1 vote
1 answer
88 views

I published a Scala package on a public Github repo. The package visibility is also public, but a token was used to publish it which I provided inside the build.sbt as it's the required standard. When ...
Saki's user avatar
  • 1,793
2 votes
1 answer
115 views

In my project/plugins.sbt file, I add a plugin that pulls in a dependency that has a vulnerability. The fix is another artifact that has a completely different group ID. How do I replace the first ...
Scott Turnquist's user avatar
1 vote
1 answer
71 views

I'm trying to publish few scalamock modules for jvm and js simultaniously. I'm using sbt-crosspublish and sbt-ci-release. addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1....
Georgii Kovalev's user avatar
2 votes
0 answers
58 views

I have a Scala development environment with Metals and a build.sbt. The theorem-prover Isabelle provides its own wrappers for Scala tools such as scalac, scala, etc. I have Isabelle added to my path ...
Anonymous Coder's user avatar
1 vote
2 answers
383 views

I am using scala 2.12.12, sbt 1.6.0, spark 3.5.1 with java 17 to run spark jobs. It appears my tests are failing due to sun.nio.ch. I researched and it seems to be a problem with java 17 version, how ...
Mujtaba Faizi's user avatar
0 votes
1 answer
207 views

I have a project where I build a sbt settings plugin that I intend to use across all my other projects. In this sbt plugin project, I define several common settings like resolvers, scm info, other ...
joesan's user avatar
  • 15.6k
0 votes
1 answer
175 views

I'm having this build.sbt for one of my projects and this project uses an sbt plugin that I have internally built and published locally. This sbt plugin contains the common shared settings and looks ...
joesan's user avatar
  • 15.6k
0 votes
1 answer
233 views

In my project, I'm running into conflicting version suffixes error for cats libraries. I ran sbt evicted, but I could not fully make sense of how to interpret it to resolve this error. Here is the ...
joesan's user avatar
  • 15.6k
1 vote
1 answer
167 views

I have a Scala sbt project where I'm using the sbt-tpolecat plugin: // scalac options for the enlightened @see https://github.com/typelevel/sbt-tpolecat addSbtPlugin("org.typelevel" % "...
joesan's user avatar
  • 15.6k
0 votes
0 answers
59 views

I#m trying to implement an sbt plugin that contains some common settings that I can publish and add as a sbt plug in my other projects. I have the project structure like this: my-plugin-project - ...
joesan's user avatar
  • 15.6k
1 vote
1 answer
458 views

I have a sbt project using sbt version 1.10.6 where I have set it to cross compile to 2.13.x and 3.1.x scala versions. lazy val scala313 = "3.1.3" lazy val scala2138 = "2.13.8" ...
joesan's user avatar
  • 15.6k
1 vote
0 answers
53 views

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 / ...
waterfallweb's user avatar
1 vote
1 answer
81 views

I'm new to sbt and Scala. I'm following the Getting Started guide: Open up build.sbt and add the following line: libraryDependencies += "org.scala-lang.modules" %% "scala-parser-...
Wallace's user avatar
  • 18.2k
2 votes
1 answer
96 views

The Getting Started guide for Scala says: Run the command sbt new scala/scala3.g8 to create a Scala 3 project, or sbt new scala/hello-world.g8 to create a Scala 2 project. Are there any more sbt new ...
Wallace's user avatar
  • 18.2k
4 votes
0 answers
82 views

We've recently upgraded to Play Version 3.0.5, running Java 21.0.4, sbt version 1.10.3, with scalaVersion 2.13.14. Everything compiles and runs correctly with these versions when running sbt clean ...
Joseph Fish Ludy's user avatar

1
2 3 4 5
201