Switch to coursier 2.0.0-RC2-4 (#93)

This commit is contained in:
Alexandre Archambault 2019-06-27 14:20:33 +02:00 committed by GitHub
parent 6be594e52e
commit 3a69ac7466
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 19 deletions

View File

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

View File

@ -78,12 +78,9 @@ final class DirectCredentials private(
}
def authentication: Authentication =
Authentication(
username,
password,
realmOpt = realm,
optional = optional
)
Authentication(username, password)
.withRealm(realm)
.withOptional(optional)
def get(): Seq[DirectCredentials] =
Seq(this)

View File

@ -24,12 +24,9 @@ object ToCoursier {
)
def authentication(authentication: Authentication): coursier.core.Authentication =
coursier.core.Authentication(
authentication.user,
authentication.password,
authentication.optional,
authentication.realmOpt
)
coursier.core.Authentication(authentication.user, authentication.password)
.withOptional(authentication.optional)
.withRealm(authentication.realmOpt)
def module(module: Module): coursier.core.Module =
coursier.core.Module(

View File

@ -112,12 +112,9 @@ object ResolutionTasks {
ivyProperties,
log,
authenticationByRepositoryId.get(resolver.name).map { a =>
Authentication(
a.user,
a.password,
a.optional,
a.realmOpt
)
Authentication(a.user, a.password)
.withOptional(a.optional)
.withRealm(a.realmOpt)
}
)
}