Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 01 15:50
    fthomas commented #2603
  • Dec 01 15:18
    julienrf assigned #2407
  • Dec 01 15:17
    julienrf added as member
  • Dec 01 14:50
    julienrf commented #2546
  • Dec 01 13:20
    jkciesluk synchronize #2604
  • Dec 01 13:11
    jkciesluk edited #2604
  • Dec 01 13:06
    jkciesluk edited #2604
  • Dec 01 11:52
    jkciesluk opened #2604
  • Dec 01 11:28
    ckipp01 opened #2603
  • Nov 29 15:46
    cjohnstoniv commented #2443
  • Nov 29 10:58
    tgodzik assigned #2443
  • Nov 29 10:48
    jkciesluk commented #2443
  • Nov 29 08:50

    alexarchambault on main

    Update pprint to 0.8.1 (#2601) (compare)

  • Nov 29 08:50
    alexarchambault closed #2601
  • Nov 29 08:50
    alexarchambault closed #2596
  • Nov 29 08:50

    alexarchambault on main

    Support URI userinfo without pa… (compare)

  • Nov 29 08:50
    alexarchambault closed #2597
  • Nov 28 15:04
    scala-steward opened #2602
  • Nov 28 15:04
    scala-steward opened #2601
  • Nov 28 10:07

    alexarchambault on main

    Update proguard-base to 7.3.0 (… (compare)

Chris Kipp
@ckipp:matrix.org
[m]
how come retained is still a range?
since in reality that will never be the "final" version
Tobias Roeser
@tobiasroeser:matrix.org
[m]
Hi, how is coursier built noawdays? I can't even run the simples instructions for DEVELOP.md
E.g.
Eric K Richardson
@ekrich
I went down that path awhile back and couldn't make progress either - if you find out please let me know here.
Tobias Roeser
@tobiasroeser:matrix.org
[m]
Sure, but this is really frustrating. Not the first time it tried. There are also lots of issues which should at least receive some response, but nothing.
I mean, saying "I don't care", or "please can somebody else help out" is a better response than quietness.
Eric K Richardson
@ekrich
I totally agree man - I got no help at all - redirect/forward doesn't work with basic auth and I wanted to fix it but I could never get to a point where I could do anything. Maybe the scala-cli team could help us.
ekrich
@ekrich:matrix.org
[m]

This message is replying to a Matrix event but we were unable to find associated bridged Gitter message to put it in the appropriate threaded conversation.

I get past this one.

Tobias Roeser
@tobiasroeser:matrix.org
[m]
Reposting my build error, as it seems it didn't make it from Matix to Gitter.
17:44:11 θ60° lefou:~/work/opensource/coursier master+* 1 ± mill core.jvm[2.13.6].compile
[7/65] core.jvm[2.13.6].publishVersion 
[42/65] util.jvm[2.13.6].compile 
Compiling project (Scala 2.13.6, JVM)
Warning: 2 feature warnings; re-run with -feature for details
java.nio.file.ClosedFileSystemException
Error compiling project (Scala 2.13.6, JVM)
        at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.ensureOpen(ZipFileSystem.java:1619)
        at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.getFileAttributes(ZipFileSystem.java:531)
        at jdk.zipfs/jdk.nio.zipfs.ZipPath.readAttributes(ZipPath.java:767)
        at jdk.zipfs/jdk.nio.zipfs.ZipPath.readAttributes(ZipPath.java:777)
        at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.readAttributes(ZipFileSystemProvider.java:276)
        at java.base/java.nio.file.Files.readAttributes(Files.java:1851)
        at java.base/java.nio.file.Files.size(Files.java:2468)
        at sbt.internal.inc.HashUtil$.farmHash(HashUtil.scala:31)
        at sbt.internal.inc.FarmHash$.ofPath(Stamp.scala:89)
Naftoli Gugenheim
@nafg

Can someone explain this?

❯ cs resolve com.zaxxer:HikariCP:4.0.0
https://repo1.maven.org/maven2/com/zaxxer/HikariCP/4.0.0/HikariCP-4.0.0.pom
  100.0% [##########] 25.3 KiB (316.4 KiB / s)
com.zaxxer:HikariCP:4.0.0:default
org.slf4j:slf4j-api:2.0.0-alpha1:default

But https://repo1.maven.org/maven2/com/zaxxer/HikariCP/4.0.1/HikariCP-4.0.1.pom doesn't show 2.0.0-alpha1. It uses a property syntax:

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
Chris Kipp
@ckipp:matrix.org
[m]
@nafg: if you look at the entry for slf4j.version in the pom https://repo1.maven.org/maven2/com/zaxxer/HikariCP/4.0.0/HikariCP-4.0.0.pom it is 2.0.0-alpha1. So resolver here is showing you the fully resolved deps
Tobias Roeser
@tobiasroeser:matrix.org
[m]
There are different property values for ${slf4j.version} in different profiles, which get auto-enabled depending on the executing Java version. Probably not the best idea, but within the Maven POM specs.
Naftoli Gugenheim
@nafg
OH WOW
Rahul Kumar
@rahulkumarsahu
Hi I am reading all dependencies from pom.xml using go lang and I want to download all those dependencies using coursier cli how can we do that with the help of go lang
Bjorn Regnell
@bjornregnell
Linking to scala user if someone would like to respond there to a bad install experience post:
https://users.scala-lang.org/t/startup-of-scala-3-on-windows-poor/8693
Carlos Eduardo de Paula
@carlosedp:matrix.org
[m]
Hi all, I'm installing scala tools using coursier and one of them is ammonite. when I install it using cs install ammonite, it installs the latest version but by default it install the scala 2.13 version.
I'd like to install the scala 3 version. is it possible?
I checked and there is ammonite built for all versions
gvolpe
@gvolpe:matrix.org
[m]

Hi folks, is it possible to complete snapshots dependencies? e.g.

$ cs complete-dep -r sonatype:snapshots org.scalameta:metals_2.13:0.11.8 
0.11.8

At the moment it only seems to resolve releases.

Or do you recommend another way of finding out the latest snapshot version of a dependency from the terminal?

2 replies
Chris Kipp
@ckipp:matrix.org
[m]
I see you're using Metals as an example but if you're doing it for metals you can set your version in nvim-metals as latest.snapshot and it will pull it for you
or if you don't want that you can have a little script that hits https://scalameta.org/metals/latests.json which will tell you the latest versions
Zhenhao Li
@Zhen-hao
hi there, can anyone tell me how to convert a value of lmcoursier.definitions.Dependency to coursier.core.Dependency?
As a beginner with this project, the purpose of lmcoursier is not very clear to me
ghc1001
@ghc1001
Hi - new to Coursier and Scala! i'm looking for a self-contained example / "hello world" on Coursier using Gradle as a build tool (i have to use Gradle because it's used at my company with Java). Specifically I can use Coursier launch using say 'cs launch scala:2.13.15 -- foo.scala' and I want to know how to use 'cs launch' with Gradle.
ghc1001
@ghc1001
hi again - anyone on this (Coursier and Gradle) or am i trying to match apples and pears?
Chris Kipp
@ckipp:matrix.org
[m]
hey @ghc1001, what you're trying to do doesn't really make sense to me. Are you trying to just run your build? If so, then you'd want to do that with gradle, not coursier
or are you trying to use coursier to launch a Scala application that has already been published?

I want to know how to use 'cs launch' with Gradle.

Essentially, you don't

you use gradle to launch a gradle project and you can use coursier to launch a published jar
ghc1001
@ghc1001
hey @ckipp:matrix.org, thanks for your reply! i should have clarified. to run my build, yes - i want to use gradle. to build, i need to use 'cs launch' - what i really want to do is swap out the scala compiler in gradle's build process with 'cs launch scalac:2.xxx' or 'cs launch scalac:3.xxx' because that's what my company provides ('cs' is configured to hit an internal artifactory repo so the 'cs launch' pattern is not something i can change). that also means that 'cs' would do the fetching during the build, not gradle. so you're right, i want coursier to launch the internally-published JARs for the scala compiler (and fetch any dependencies internally) under gradle (if that's possible). and then use gradle as usual for run my build.
Chris Kipp
@ckipp:matrix.org
[m]

what i really want to do is swap out the scala compiler in gradle's build process with 'cs launch scalac:2.xxx' or 'cs launch scalac:3.xxx' because that's what my company provides

I guess this is the part the confuses me with your use case. cs launch will have nothing to do with gradle. At the point that you're using launch, gradle is no longer in the picture

do you mean you have two artifacts and you want to be able to cs launch both the Scala 2 artifact and the Scala 3 artifact?
what exactly are you trying to launch?
ghc1001
@ghc1001
@ckipp:matrix.org i'm trying to launch both the Scala 2 compiler (for a 2.x build) and the Scala 3 compiler (for a 3.x build), yes. i have two ways to go: 1) with gradle, where i need to specify the dependencies in the build.gradle - something like dependencies {
implementation "org.scala-lang:scala-library:2.13.1"
scalaCompilerPlugins "org.typelevel:kind-projector_2.13.1:0.11.0"
}
@ckipp:matrix.org or 2) with coursier, where i can use 'cs launch scalac:2.13.1 -- foo.scala'
ghc1001
@ghc1001
both methods work (the dependencies are fetched). and here's where i am beyond my depth - i don't know if i can tell gradle to use 'cs launch scalac:2.13.1 -- foo.scala' to build. i think (i could be wrong) that gradle fetches itself and you can only specify dependencies using e.g. the above Groovy code; you can't tell gradle to go do things with coursier. for various internal reasons the coursier way is "cleaner" - but using it alone i'd have to dump Gradle, so i'm trying to get the best of both worlds... hope that makes more sense?
Chris Kipp
@ckipp:matrix.org
[m]
do you have to use gradle for this?
this all seems very odd
and I'm still not 100% sure what you mean
ghc1001
@ghc1001
@ckipp:matrix.org your answer tells me everything ;-) new to this - exploring options. let me tinker and i'll be back in a few days with an update
Tobias Roeser
@tobiasroeser:matrix.org
[m]
Hi @alexarchambault. How are we supposed to create a Dependency without access to MinimizedExclusions in coursier 2.1.0-M7?
It's private to coursier package
In Mill, I have the additional problem of pickling and unpickling it to json.
Chris Kipp
@ckipp:matrix.org
[m]
Anyone able to build coursier locally? I tried on a fresh clone today and I keep getting
❯ ./mill __.compile
[46/3022] bootstrap-launcher.compile
[info] compiling 40 Java sources to /Users/ckipp/Documents/scala-workspace/coursier/out/bootstrap-launcher/compile.dest/classes ...
[error] /Users/ckipp/Documents/scala-workspace/coursier/modules/paths/src/main/java/coursier/paths/CoursierPaths.java:9:1: package dev.dirs does not exist
[error] dev.dirs.GetWinDirs
[error] /Users/ckipp/Documents/scala-workspace/coursier/modules/paths/src/main/java/coursier/paths/CoursierPaths.java:10:1: package dev.dirs does not exist
[error] dev.dirs.ProjectDirectories
[error] /Users/ckipp/Documents/scala-workspace/coursier/modules/paths/src/main/java/coursier/paths/CoursierPaths.java:25:1: cannot find symbol
[error]   symbol:   class ProjectDirectories
[error]   location: class coursier.paths.CoursierPaths
[error] ProjectDirectories
[error] /Users/ckipp/Documents/scala-workspace/coursier/modules/paths/src/main/java/coursier/paths/CoursierPaths.java:105:1: cannot find symbol
[error]   symbol:   class ProjectDirectories
[error]   location: class coursier.paths.CoursierPaths
[error] ProjectDirectories
[error] /Users/ckipp/Documents/scala-workspace/coursier/modules/paths/src/main/java/coursier/paths/CoursierPaths.java:120:1: cannot find symbol
[error]   symbol:   class ProjectDirectories
[error]   location: class coursier.paths.CoursierPaths
[error] ProjectDirectories
1 targets failed
bootstrap-launcher.compile javac returned non-zero exit code
Chris Kipp
@ckipp:matrix.org
[m]
ahhh the submodules.... nevermind
Svend Vanderveken
@sv3ndk
Hi all,
Is the installation of Bloop with Coursier supposed to install the zsh auto-completion config?
I'm new to both those tools, so maybe I'm just misunderstanding something.
I installed Bloop as described in the doc (https://scalacenter.github.io/bloop/setup#universal) on Linux, everything seems to work, except that the $HOME/.bloop/zsh folder mentioned further in that page was not created and so zsh auto-completion was not working.
I then found the relevant file in the bloop repo (https://github.com/scalacenter/bloop/blob/main/etc/zsh-completions) and copied it manually to $HOME/.bloop/zsh/_bloop, which solved my issue.
Is Coursier supposed to have created that file, in which case maybe I should open a issue on the Coursier repo?
Or should the Bloop install documentation be updated to let people know they should download the file manually?
Or something else?
Thanks in advance :)
Daniel de Oliveira Mantovani
@mantovani
Is possible to create an assembly jar for a pacakge without main class ?
➜  foo cs bootstrap "org.apache.spark:spark-hive_2.11:2.4.8" --assembly       
Cannot find default main class. Specify one with -M or --main-class.
TomTriple
@TomTriple
Does coursier support pushing to private gitlab repositories? For SBT we have the plugin sbt-gitlab (https://github.com/gilcloud/sbt-gitlab) that sets custom http header for authenticating. As of the docs it explicitly mentions that we need to set useCoursier := false. Does coursier support private gitlab repos?