Switch to coursier 2.0.0-RC3-1 (#108)

This commit is contained in:
Alexandre Archambault 2019-08-03 17:25:30 +02:00 committed by GitHub
parent 4a27bd42bc
commit aa53418218
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 5 deletions

View File

@ -15,7 +15,7 @@ inThisBuild(List(
)
))
val coursierVersion0 = "2.0.0-RC2-6"
val coursierVersion0 = "2.0.0-RC3-1"
lazy val `lm-coursier` = project
// .enablePlugins(ContrabandPlugin)

View File

@ -95,7 +95,8 @@ object ToCoursier {
dt.minute,
dt.second
)
}
},
None // TODO Add scm field in lmcoursier.definitions.Info?
)
)

View File

@ -41,9 +41,11 @@ check := {
)
def containsRepo(repo: String): Boolean = {
parsedCoursierResolvers.collectFirst {
case m: coursier.maven.MavenRepository if m.root == repo => true
}.exists{ _ == true }
val accepted = Set(repo, repo.stripSuffix("/"))
parsedCoursierResolvers.exists {
case m: coursier.maven.MavenRepository => accepted(m.root)
case _ => false
}
}
assert(containsRepo("s3://s3-us-west-2.amazonaws.com/bucket-name/snapshots/"),