Use this tag for questions related to the coursier dependency fetcher/resolver and how it relates to, interacts with and differs from others like Maven and Ivy.
Questions tagged [coursier]
33 questions
1
vote
2 answers
How do I resolve "Cannot add dependency [...] to configuration 'default' of module [...] because this configuration doesn't exist"?
The problem arises after adding ThisBuild / useCoursier := false to my build.sbt file. Plugins.sbt file is
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.15.0")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2") // "2.4.0" is just sbt…

Corram
- 233
- 1
- 3
- 13
1
vote
1 answer
How do I use the new coursier language with pre-commit.com?
I'm using pre-commit 2.8.2 and trying to get the new coursier language to work.
I'm able to run the coursier command successfully from CLI.
❯ cs launch io.gitlab.arturbosch.detekt:detekt-cli:1.14.2 -M io.gitlab.arturbosch.detekt.cli.Main -r…

Dustin Shimono
- 1,031
- 7
- 10
1
vote
1 answer
java.nio.file.InvalidPathException while resolving sbt project
Great fan of Scala, but SBT keeps giving me tooth aches in places without teeth.
Usually I manage, but this one has me somewhat baffled.
Can anyone help me with the following:
TL/DR
While re-importing my sbt-project, I encountered the following…

Joost Papendorp
- 216
- 1
- 7
1
vote
1 answer
SBT: describe external dependency relative to another (transitive) dependency?
To avoid jar hell, I'd like to refer to a dependency relatively.
For example, when I add a dependency to "org.http4s" %% "https-circe" % "0.21.1":
cs resolve org.http4s:http4s-circe_2.12:0.21.1 | grep -i circe …

Stefan K.
- 7,701
- 6
- 52
- 64
1
vote
0 answers
How to use `.netrc` file in coursier fetch/launch
I have very simple need of launching jar which has all dependencies burned in and main class configured. The only thing which I need to do is fetch, cache (this is important because jar is large) and launch and I want to do all of this with one…

Petro Semeniuk
- 6,970
- 10
- 42
- 65
0
votes
1 answer
Why is Coursier needed? What is the different between coursier and maven, sbt, gradle?
The documentation says that coursier is a new artifact manager for scala. But what is the difference between Coursier and build tools like maven, sbt and gradle? Why do I need +1 folder with jar files? I have already .m2 for maven repository,…

Cherry
- 31,309
- 66
- 224
- 364
0
votes
0 answers
version compatibility with almond-sh on windows when use spark
I'm facing a problem with version compatibility when use spark with almond-sh kernel on windows. I tried many times with different version but not succeed (i also tried check compatibility table). What version i should choose for these
coursier…

qxk71551
- 95
- 9
0
votes
0 answers
sbt compile error: java.nio.file.FileSystemException: /root: Read-only file system
I am working on a scala project that uses sbt 1.7.1
The project has its external dependencies like the database etc. that run in docker.
I'm not sure what started the issue exactly, but now when I try and go into sbt console I get this error:
[info]…

funcfunc
- 1
- 2
0
votes
1 answer
Coursier command not found and Unable to access jarfile selenium-beta-4.jar
I run the selenium grid on container and would like to apply opentracing to this container.Here are my Dockerfile for test image and docker-compose file .
Docker_compose file:
version: "3"
services:
chrome:
image: test
shm_size: 4gb
…

TonyLiu
- 1
- 1
- 1
0
votes
0 answers
How do I pass Java command line options to Coursier when the Java option is two words?
I need to pass the command line option, --add-exports, to java. Example:
--add-exports java.management/sun.management=ALL-UNNAMED
If I try to use the --java-opt for Coursier, it does not work and I get an error. It appears Coursier is not parsing…

Dustin Shimono
- 1,031
- 7
- 10
0
votes
1 answer
coursier launch scala 3.1.0
How to launch scala 3.1.0 using coursier?
I tried and got this ...
~ cs launch scala:3.1.0
Resolution error: Error downloading org.scala-lang:scala-compiler:3.1.0
not found: /Users/bh/.ivy2/local/org.scala-lang/scala-compiler/3.1.0/ivys/ivy.xml
…

Naga Vijayapuram
- 845
- 7
- 11
0
votes
2 answers
Attempting to execute compile task but mystery module can't be loaded
I'm compiling a multi-part Scala project. It's not that large, but some of it is Scala 2.13 and some is Scala 3.
Attempting to compile generates the fatal error [UNRESOLVED DEPENDENCIES:
base#base_2.12;0.1.0-SNAPSHOT: not found]
The thing is, the…

airfoyle
- 443
- 2
- 13
0
votes
1 answer
How to find dependency conflicts in 3rd party libraries
I'm looking for a way to find dependency conflicts in 3rd party libraries. I'm aware of mvn dependency:tree, its -Dverbose and -Dincludes options. This works well but has a couple of drawbacks:
I need to set up a pom.xml file with the 3rd party…

michid
- 10,536
- 3
- 32
- 59
0
votes
1 answer
value `versionReconciliation` not found in set
I have an existing Scala with sbt project. Sbt version 1.4.7. I want to make dependencies check more strict according to next article: https://www.scala-lang.org/2019/10/17/dependency-management.html
I've added the next configuration to my…

Ivan Kurchenko
- 4,043
- 1
- 11
- 28
0
votes
1 answer
Does SBT to support preemptive auth for downloading packages?
I am running SBT 1.2.8 and my project needs to download packages from a repo on a privately hosted Artifactory instance. My repo is protected by basic auth. After reading a multitude of examples and instructions, I created a credentials.properties…

Jon Gunter
- 1,864
- 2
- 15
- 21