Switch to coursier 1.1.0-M14-2 (#60)

This commit is contained in:
Alexandre Archambault 2019-04-25 15:35:38 +02:00 committed by GitHub
parent b417d4f79e
commit 736d5c11c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 3 deletions

View File

@ -21,7 +21,7 @@ lazy val `lm-coursier` = project
.settings(
shared,
libraryDependencies ++= Seq(
"io.get-coursier" %% "coursier" % "1.1.0-M14-1",
"io.get-coursier" %% "coursier" % "1.1.0-M14-2",
// We depend on librarymanagement-ivy rather than just
// librarymanagement-core to handle the ModuleDescriptor passed
// to DependencyResolutionInterface.update, which is an

View File

@ -208,6 +208,8 @@ object InputsTasks {
.withUsername(c.userName)
.withPassword(c.passwd)
.withRealm(Some(c.realm).filter(_.nonEmpty))
.withHttpsOnly(false)
.withMatchHost(true)
}
}
else

View File

@ -9,6 +9,8 @@ coursierExtraCredentials += {
s"""foo.host=${uri(sys.env("TEST_REPOSITORY")).getHost}
|foo.username=user
|foo.password=pass
|foo.auto=true
|foo.https-only=false
""".stripMargin
val dest = baseDirectory.in(ThisBuild).value / "project" / "target" / "cred"
Files.write(dest.toPath, content.getBytes("UTF-8"))

View File

@ -2,4 +2,4 @@ coursierExtraCredentials += coursier.credentials.Credentials(
uri(sys.env("TEST_REPOSITORY")).getHost,
sys.env("TEST_REPOSITORY_USER"),
sys.env("TEST_REPOSITORY_PASSWORD")
)
).withHttpsOnly(false).withMatchHost(true)

View File

@ -6,6 +6,6 @@ coursierExtraCredentials += coursier.credentials.Credentials(
uri(sys.env("TEST_REPOSITORY")).getHost,
sys.env("TEST_REPOSITORY_USER"),
sys.env("TEST_REPOSITORY_PASSWORD")
)
).withHttpsOnly(false).withMatchHost(true)
libraryDependencies += "com.abc" % "test" % "0.1"