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
9
votes
0 answers
sbt: Add http headers when fetching private maven repo with credentials
I try to use credentials in my build.sbt config in order to retrieve private artifacts from a gitlab private maven repository.
But as sbt documentation states :
The credentials file is a properties file with keys realm, host, user, and…

kheraud
- 5,048
- 7
- 46
- 75
5
votes
3 answers
How to run Scala 3 applications in the command line with Coursier
If you follow the steps at the official Scala 3 sites, like Dotty or Scala Lang then it recommends using Coursier to install Scala 3. The problem is that neither or these explain how to run a compiled Scala 3 application after following the…

Jack
- 16,506
- 19
- 100
- 167
5
votes
4 answers
sbt can not compile Scala project because of java.lang.NoSuchMethodError
I am new to Scala so any help would be really appreciated.
I am using IntelliJ IDEA Version: 2020.1, sbt.version=1.2.8, jdk1.8.0_ 251 and Scala 2.12.8.
When I tried to compile a coursera project i get the following error
compile
[error] stack trace…

car
- 47
- 1
- 6
5
votes
1 answer
Scala Coursier custom Ivy repository
I want to give a shot to a coursier artifact fetcher, but we are using Artifactory for maven and ivy repositories, I am not sure how to set it up in with coursier. In documentation they provide this example of ENV. variable:
export…

RB_
- 1,195
- 15
- 35
4
votes
1 answer
Issues with "`GLIBC_2.32' and `GLIBC_2.34' not found" when Installing Coursier as per Scala 'getting Started' Official Instructions
What I am trying to do:
I want to get started with Scala, as per https://docs.scala-lang.org/getting-started/index.html.
curl -fL https://github.com/coursier/launchers/raw/master/cs-x86_64-pc-linux.gz | gzip -d > cs && chmod +x cs && ./cs setup
The…

aleen
- 45
- 1
- 1
- 4
4
votes
1 answer
Strange versions conflict in sbt strict mode
Why sbt (1.3.5) fail to resolve identical dependencies in strict mode?
> cat build.sbt
conflictManager := sbt.ConflictManager.strict
libraryDependencies += "io.grpc" % "grpc-all" % "1.26.0"
sbt:test> compile
[error] stack trace is suppressed; run…

Andrei Baidarov
- 41
- 2
3
votes
1 answer
Prepare coursier artifact for offline use inside container
I have an sbt project producing my artifact xyz.
I would like to put it along with all its dependencies in the docker container so it can be used using
coursier launch --mode offline xyz
The important part is that preparation should take use of…

Krever
- 1,371
- 1
- 13
- 32
3
votes
1 answer
sbt 1.3.8 publishLocal creates a jar that sbt update can't resolve. scala version is appended to jar name
I published some libraries using sbt publishLocal it worked and published to my ~/.ivy2/local dir.
I then have a project that depends on these libraries but sbt update can't find them.
specifically, my project has these dependencies:
lazy val…

Karl
- 1,164
- 9
- 25
2
votes
2 answers
command 'scala' not found after set up by coursier
I use coursier to set up the environment of Scala using command ./cs setup in Ubuntu 20.04 LTS. It was said that all the requirements were installed. However, when I use command scala -version to check whether the installation succeeded, it shown…

Jinhong Ye
- 21
- 2
2
votes
1 answer
How to use coursier with a Proxy
Coursier is a Scala Download Tool. The instructions say to use -Dhttps.proxyHost, but it did not work for me:
./coursier bootstrap --java-opt -Xss4m --java-opt -Xms100m --java-opt -Dmetals.client=emacs -Dhttps.proxyHost=127.0.0.1…

serv-inc
- 35,772
- 9
- 166
- 188
2
votes
1 answer
How to change Ammonite, coursier cache location?
I am using Coursier in ammonite to download jar from a private repo. However for reason of integration with Intellij, I would like to change the location that coursier uses to cache the artificat. I would like to point to my local ivy. Is there a…

MaatDeamon
- 9,532
- 9
- 60
- 127
1
vote
1 answer
Installing Scala Language on MacBook : Manually (No Brew or Coursier)
I am trying to install scala language on my work laptop (mac). Could someone let me know the installation commands if I am unable to use brew or coursier? I have downloaded the package from github directly but unsure of next steps.
When using…

Serena Campbell UK
- 29
- 2
1
vote
0 answers
Why is `cs launch scala` (coursier tool) looking for Java in a wrong location?
I am using the coursier tool to prepare my Scala environment. I ran the following:
C:\Users\jaime>cs setup
Checking if a JVM is installed
Found a JVM installed under C:\Program Files\Java\jre1.8.0_271.
Checking if ~\AppData\Local\Coursier\data\bin…

Jaime Montoya
- 6,915
- 14
- 67
- 103
1
vote
1 answer
Why does sbt try to pull my interproject dependency?
I have a multi-project build with a build.sbt that looks as follows:
import lmcoursier.CoursierConfiguration
import lmcoursier.definitions.Authentication
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / scalaVersion := "2.12.12"
val…

Roy van Santen
- 2,361
- 3
- 10
- 11
1
vote
0 answers
What am I missing to complete the Coursier scala development environment setup?
I am trying to set up a scala development environment on my Mac (MacOS Big Sur 11.5.2).
I have installed Coursier using homebrew following the official coursier documentation.
However when I run
cs setup --jvm adopt:11, I get the following…

caksters
- 11
- 2