Skip to content

Commit

Permalink
Merge pull request #72 from eed3si9n/wip/http
Browse files Browse the repository at this point in the history
fix the warning
  • Loading branch information
eed3si9n authored Aug 2, 2019
2 parents 87e99d0 + ca43fb3 commit 3d79049
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions launcher-implementation/src/main/scala/xsbt/boot/Update.scala
Original file line number Diff line number Diff line change
Expand Up @@ -367,13 +367,17 @@ final class Update(config: UpdateConfiguration) {
private def useSecureResolvers = sys.props.get("sbt.repository.secure") map { _.toLowerCase == "true" } getOrElse true
private def centralRepositoryRoot(secure: Boolean) = {
val value = (if (secure) "https" else "http") + "://repo1.maven.org/maven2/"
log(s"[warn] insecure HTTP request is deprecated '$value' via 'sbt.repository.secure'; switch to HTTPS")
log(s"[warn] Maven Central HTTP access is scheduled to end in January 2020")
if (!secure) {
log(s"[warn] insecure HTTP request is deprecated '$value' via 'sbt.repository.secure'; switch to HTTPS")
log(s"[warn] Maven Central HTTP access is scheduled to end in January 2020")
}
value
}
private def jcenterRepositoryRoot(secure: Boolean) = {
val value = (if (secure) "https" else "http") + "://jcenter.bintray.com/"
log(s"[warn] insecure HTTP request is deprecated '$value' via 'sbt.repository.secure'; switch to HTTPS")
if (!secure) {
log(s"[warn] insecure HTTP request is deprecated '$value' via 'sbt.repository.secure'; switch to HTTPS")
}
value
}

Expand Down

0 comments on commit 3d79049

Please sign in to comment.