Skip to content

Commit

Permalink
Update to changes in coursier 2.1.0
Browse files Browse the repository at this point in the history
Since coursier/coursier#2633 handling for resolving sbt plugins from Maven repositories got extracted into `SbtMavenRepository` in the `coursier-sbt-maven-repository` module
  • Loading branch information
mzuehlke committed Mar 24, 2023
1 parent baa32d2 commit 630b090
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ lazy val core = myCrossProject("core")
Dependencies.circeRefined,
Dependencies.commonsIo,
Dependencies.coursierCore,
Dependencies.coursierSbtMaven,
Dependencies.cron4sCore,
Dependencies.decline,
Dependencies.fs2Core,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ object CoursierAlg {
resolver match {
case Resolver.MavenRepository(_, location, creds, headers) =>
val authentication = toCoursierAuthentication(creds, headers)
Right(coursier.maven.MavenRepository.apply(location, authentication))
Right(coursier.maven.SbtMavenRepository.apply(location, authentication))
case Resolver.IvyRepository(_, pattern, creds, headers) =>
val authentication = toCoursierAuthentication(creds, headers)
coursier.ivy.IvyRepository.parse(pattern, authentication = authentication)
Expand Down
4 changes: 3 additions & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ object Dependencies {
val circeParser = "io.circe" %% "circe-parser" % circeGeneric.revision
val circeRefined = "io.circe" %% "circe-refined" % circeGeneric.revision
val commonsIo = "commons-io" % "commons-io" % "2.11.0"
val coursierCore = "io.get-coursier" %% "coursier" % "2.1.0-RC5"
val coursierCore = "io.get-coursier" %% "coursier" % "2.1.0"
val coursierSbtMaven =
"io.get-coursier" %% "coursier-sbt-maven-repository" % coursierCore.revision
val cron4sCore = "com.github.alonsodomin.cron4s" %% "cron4s-core" % "0.6.1"
val decline = "com.monovore" %% "decline" % "2.4.1"
val disciplineMunit = "org.typelevel" %% "discipline-munit" % "1.0.9"
Expand Down

0 comments on commit 630b090

Please sign in to comment.