mirror of https://github.com/sbt/sbt.git
Support missing coursier.core.Authentication fields
This commit is contained in:
parent
e2876fb23e
commit
f37dd6af0f
|
|
@ -8,7 +8,9 @@ import dataclass._
|
|||
optional: Boolean = false,
|
||||
realmOpt: Option[String] = None,
|
||||
@since
|
||||
headers: Seq[(String,String)] = Nil
|
||||
headers: Seq[(String,String)] = Nil,
|
||||
httpsOnly: Boolean = true,
|
||||
passOnRedirect: Boolean = false
|
||||
) {
|
||||
override def toString(): String =
|
||||
withPassword("****")
|
||||
|
|
@ -24,5 +26,5 @@ import dataclass._
|
|||
object Authentication {
|
||||
|
||||
def apply(headers: Seq[(String, String)]): Authentication =
|
||||
Authentication("", "", optional = false, None, headers)
|
||||
Authentication("", "").withHeaders(headers)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@ object ToCoursier {
|
|||
.withOptional(authentication.optional)
|
||||
.withRealmOpt(authentication.realmOpt)
|
||||
.withHttpHeaders(authentication.headers)
|
||||
.withHttpsOnly(authentication.httpsOnly)
|
||||
.withPassOnRedirect(authentication.passOnRedirect)
|
||||
|
||||
def module(module: Module): coursier.core.Module =
|
||||
coursier.core.Module(
|
||||
|
|
|
|||
Loading…
Reference in New Issue