Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix coursierint NPE when credential realm is null
As stated in sbt#5492 and sbt#2366 some artifact hosting services (at least Azure Artifacts, seems to affect GCP as well) do not offer a stable HTTP Auth realm that can be safely set in SBT credentials, hence the need to support null or empty Credentials. The Ivy (publishing) side of the issue was fixed in sbt/ivy#36 As to the resolving side, This commit is only part of the solution as it just prevents an NPE and does not consider if coursier itself will fall back to finding credentials with a null realm that matches the server hostname. Related-to: sbt#5492 Related-to: sbt#2366 Signed-off-by: Erwan Queffelec <erwan.queffelec@gmail.com>
- Loading branch information