Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Dec 08 17:27
    scala-steward commented #2224
  • Dec 08 17:27
    scala-steward closed #2224
  • Dec 08 17:27
    scala-steward opened #2290
  • Dec 08 17:26
    scala-steward closed #2223
  • Dec 08 17:26
    scala-steward commented #2223
  • Dec 08 17:26
    scala-steward opened #2289
  • Dec 06 21:28
    scala-steward opened #2288
  • Dec 06 08:17
    hmemcpy opened #2287
  • Dec 06 00:17
    dwickern opened #2286
  • Dec 04 13:57
    agilesteel opened #2285
  • Dec 03 20:03
    fiadliel closed #2283
  • Dec 03 20:03
    fiadliel commented #2283
  • Dec 03 13:45
    scala-steward closed #2279
  • Dec 03 13:45
    scala-steward commented #2279
  • Dec 03 13:45
    scala-steward opened #2284
  • Dec 03 11:45
    fiadliel opened #2283
  • Dec 01 13:33
    mavericksy closed #2282
  • Dec 01 13:33
    mavericksy commented #2282
  • Dec 01 13:14
    alexarchambault commented #2282
  • Dec 01 13:06
    alexarchambault commented #2282
Alessandro Vermeulen

I’m looking at #1649 and the snippet workaround works for update however it appears that the authentication is missing completely when using updateClassifiers. The downloaded files are also stored in the cache without a username in front of the directory name

How can I fix this? Is it a sbt thing?


Hi all, any plan to cut a new release? I have an issue with sbt but it's blocked by a merged PR in coursier :) coursier/coursier#2055

Hi @alexarchambault, any plan for a new Coursier release?

Piotr Jósiak

Hi! When I try to import shaded courier from sbt build files like import lmcoursier.internal.shaded.coursier.Resolution I get an error :

[error] /Users/piotrjosiak/scalac/rallyhealth/lib-arcade-commons/project/Test.scala:1:8: Symbol 'term <root>.coursier' is missing from the classpath.
[error] This symbol is required by ' <none>'.
[error] Make sure that term coursier is in your classpath and check for conflicting dependencies with `-Ylog-classpath`.
[error] A full rebuild may help if 'package.class' was compiled against an incompatible version of <root>.
[error] import lmcoursier.internal.shaded.coursier.core.Resolution
[error]        ^
[error] /Users/piotrjosiak/scalac/rallyhealth/lib-arcade-commons/project/Test.scala:4:14: Symbol 'term coursier.core' is missing from the classpath.
[error] This symbol is required by ' <none>'.
[error] Make sure that term core is in your classpath and check for conflicting dependencies with `-Ylog-classpath`.

I'm a little bit surprised, as cursier is present in the classpath (I guess it has to be as it's used by sbt anyway). Does anyone know what is going on?

Ondra Pelech
Hello, what are the Maven coordinates of the JAR that can do the functionality of coursier launch as its main method?
Hi, is there a way to know which dependency gets resolved when using wildcards? like for instance I would like to know to whatcs complete sh.almond:scala-kernel_2.12.8:0.11.+ resolves, but that's no valid syntax. However it's a valid syntax in the dependency declaration itself
Brian P. Holt

Does anyone have tips for getting cs complete version listing working with an internal Nexus Repository Manager 3 repository? I can’t tell if there’s something wrong with our setup or if I’m using the wrong URL or what, but I can’t figure out how to get it working.

For example, if I use Nexus’s REST API as the URL (e.g. https://hostname-redacted/service/rest/repository/browse/maven-central/), I can get completions for artifact IDs, but it shows a 404 when downloading the maven-metadata.xml file to discover what versions are available.

Brian P. Holt

Our Nexus instance is fronted by nginx for various reasons, but I was able to get cs complete working using this directive in nginx:

location ~ ^/repository/((?:maven|ivy)-[^/]+)((?:/[^/]+)*)/$ {
  proxy_pass http://nexus:8081/service/rest/repository/browse/$1$2/;

Basically rewriting the requests that Coursier makes to their corresponding endpoints in the Nexus REST API. This feels like a hack but it seems like it’s working so far. (We might find out through more use that it’s missing something or otherwise causes problems… time will tell)

Robert Bates

hi! i'm trying to install scala3 on macOS via homebrew, and when executing:
brew install coursier/formulas/coursier
i keep getting this error:

Error: Invalid formula: /usr/local/Homebrew/Library/Taps/coursier/homebrew-formulas/coursier.rb
coursier: Unsupported special dependency :java
Error: Cannot tap coursier/formulas: invalid syntax in tap!

any idea if this is from a recent update or is there some undocumented missing dep?

on the latest brew commit - 4e6919b73

latest version of bloop is 1.4.9, coursier installs bloop v1.4.8-114-e47368ed, vscode metals extension 1.10.11 requires bloop 1.4.9.

what is the usual turnaround time for coursier to catch up to latest bloop version?

Chris Kipp
coursier should be pulling in the latest, since the coursier/apps bloop.json` looks for the latest release artifact, and it's there
also keep in mind that you can do a bloop exit to shutdown bloop, and then open Metals, and metals will start the version of bloop it has reference to
yes, might have to let metals take care of its ownbloop needs, ftm

ok, appears to be my mistake -- after bloop exit and restarting bloop it attached to a 1.4.9 server -- so bloop about now reports 1.4.9.

i assume it just kept restarting an older server previously.

Tobias Roeser
With the update of from 20.16+73-gddc6d9cc9 to 2.0.16-158-gbdc8669f9 we get the following exception in out CI
  java.lang.NoSuchMethodError: 'com.google.common.collect.ImmutableSet com.google.common.collect.ImmutableSet.copyOf(java.util.Collection)'
It's not directly related to coursier, but probably to it's transitive dependencies
This is a ScalaJS test.
Any ideas?
Also, we get this:
  java.lang.NoClassDefFoundError: Could not initialize class com.google.common.jimfs.Configuration$UnixHolder
Grégory Marti


Trying to migrate my repositories to gitlab i seem to have a problem to download sbt plugins from there.

I tried to configure normal sbt with Http headers, its not working

my project/plugins.sbt file :

import lmcoursier.definitions.Authentication

val auth:Authentication = if (sys.env.contains("CI")) {
} else {
  Authentication(Seq(("Private-Token", sys.env("GITLAB_PRIVATE_TOKEN"))))
resolvers += ("COUCOU" at "https://myrepo/api/v4/groups/mygroup/-/packages/maven")

csrConfiguration ~= (_.addRepositoryAuthentication("COUCOU",auth))
updateClassifiers / csrConfiguration ~= (_.addRepositoryAuthentication("COUCOU",auth))
updateSbtClassifiers / csrConfiguration ~= (_.addRepositoryAuthentication("COUCOU",auth))

addSbtPlugin("myorg"    % "sbt-myplugin"    % "1.2.3")

error : Im forbidden, so probably it doesnt use the authentication (I can successfully curl with the token )

So i tried to use sbt-coursier plugin for this "specific use-case" with sbt-extras (like here https://get-coursier.io/docs/sbt-coursier#sbt-13x) but it doesnt compile, seems there is an issue with coursier version conflict
java.lang.NoSuchMethodError: 'coursier.core.Project lmcoursier.definitions.ToCoursier$.project(lmcoursier.definitions.Project)'

Is there a way to use sbt-coursier plugin instead of coursier used by sbt ?


Boris Capitanu

Is it possible to unify artifact cache locations between Maven and SBT such that we don't end up with multiple copies of the same artifact in the various caches (Maven, Ivy, Coursier)? I have projects built with Maven and SBT and over time the cached artifacts are starting to occupy a non-trivial amount of disk space. "It is what it is" was my philosophy so far, but a cursory inspection shows that there are many duplicates between the artifacts stored at ~/.m2/repository/, ~/.ivy2/cache/, and ~/Library/Caches/Coursier/....

Is it possible to create a setup where Maven and SBT projects look up (and store) cached artifacts in a single location? That includes sbt publishLocal to store the locally-published artifact in the same cached location. I don't care which location it is between the 3 I mentioned...

Tobias Roeser
@borice Possible, yes, advisable, probably not. At least, each tools has different assumption about the mutability of the downloaded artifacts. I think coursier is rather strict. The simplest solution would be IMHO, to derive from MavenRepository and just lookup the JARs in alternative locations before downloading them. That means all metadata is still redundant and under the control of each respective tool, but the actual JARs, which are the large files, and which can be checked for their checksums, are shared in the sense that they will be reused if already present in some other location.
2 replies

Hi just got myself an ARM-based Apple computer and tried installing Java, Scala, sbt, etc. through coursier. It appears to work for Java (adopt-openj9:1.8.0-292) and Scala (2.13.6). But when launching sbt I am presented with the following error:

❯ sbt [info] [launcher] getting org.scala-sbt sbt 1.5.5 (this may take some time)... assertion failed [found_x86_offset]: no instruction entry found for jit breakpoint at arm address 0x10838cbb0 (TranslationCacheJit.cpp:300 handle_jit_breakpoint)

I don't see anything on this on the docs so was hoping someone could help me out with this. I'd prefer to install everything thsough one manager (coursier) and not have to install e.g. sbt through brew. Thanks!

Hi Gitter Guys!
I'm trying to install this command "cs setup --jvm adopt:11" I have some errors. Please help me!
Exception in thread "main" coursier.cache.ArtifactError$DownloadError: download error: Caught javax.net.ssl.SSLHandshakeException (PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target) while downloading https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11%2B28/OpenJDK11-jdk_x64_mac_hotspot_11_28.tar.gz
Eugene Medvediev
Hello, I have a problem with updating bloop to latest version:
I have Ubuntu 20.04 and have installed bloop via coursier. Current version is bloop v1.4.10-8-8d1cbc4f.
I see no errors when I execute command cs update bloop. I even uninstall bloop and install again, but somehow it installs version 1.4.10, even if 1.4.11 is available.
Looks like it uses already downloaded version and only copying it to ~/.local/share/coursier/bin/bloop location.
What is the way to install latest bloop?
Eugene Medvediev

❯ cs install bloop
No new update since 2021-11-02 20:11:03
Wrote bloop

❯ bloop about
bloop v1.4.10-8-8d1cbc4f

but if I follow the link, then latest version is 1.4.11

1 reply
have you tried with: cs update bloop ? @eugenemedvediev
Tomasz Godzik
You also need to stop the server first with bloop ng-stop and then do any other Bloop command