mirror of https://github.com/sbt/sbt.git
Switch to coursier 2.0.0-RC2-4 (#93)
This commit is contained in:
parent
6be594e52e
commit
3a69ac7466
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue