Skip to content

Commit 630b090

Browse files
committed
Update to changes in coursier 2.1.0
Since coursier/coursier#2633 handling for resolving sbt plugins from Maven repositories got extracted into `SbtMavenRepository` in the `coursier-sbt-maven-repository` module
1 parent baa32d2 commit 630b090

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

build.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ lazy val core = myCrossProject("core")
117117
Dependencies.circeRefined,
118118
Dependencies.commonsIo,
119119
Dependencies.coursierCore,
120+
Dependencies.coursierSbtMaven,
120121
Dependencies.cron4sCore,
121122
Dependencies.decline,
122123
Dependencies.fs2Core,

modules/core/src/main/scala/org/scalasteward/core/coursier/CoursierAlg.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ object CoursierAlg {
124124
resolver match {
125125
case Resolver.MavenRepository(_, location, creds, headers) =>
126126
val authentication = toCoursierAuthentication(creds, headers)
127-
Right(coursier.maven.MavenRepository.apply(location, authentication))
127+
Right(coursier.maven.SbtMavenRepository.apply(location, authentication))
128128
case Resolver.IvyRepository(_, pattern, creds, headers) =>
129129
val authentication = toCoursierAuthentication(creds, headers)
130130
coursier.ivy.IvyRepository.parse(pattern, authentication = authentication)

project/Dependencies.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ object Dependencies {
1414
val circeParser = "io.circe" %% "circe-parser" % circeGeneric.revision
1515
val circeRefined = "io.circe" %% "circe-refined" % circeGeneric.revision
1616
val commonsIo = "commons-io" % "commons-io" % "2.11.0"
17-
val coursierCore = "io.get-coursier" %% "coursier" % "2.1.0-RC5"
17+
val coursierCore = "io.get-coursier" %% "coursier" % "2.1.0"
18+
val coursierSbtMaven =
19+
"io.get-coursier" %% "coursier-sbt-maven-repository" % coursierCore.revision
1820
val cron4sCore = "com.github.alonsodomin.cron4s" %% "cron4s-core" % "0.6.1"
1921
val decline = "com.monovore" %% "decline" % "2.4.1"
2022
val disciplineMunit = "org.typelevel" %% "discipline-munit" % "1.0.9"

0 commit comments

Comments
 (0)