mirror of https://github.com/sbt/sbt.git
lm 1.7.0-M1
This removes OkHttp dependency. This also removes an experimental feature to customize HTTP for Ivy called CustomHttp we added in sbt 1.3.0. Since LM got switched to Coursier in 1.3.0, I don't think we advertized CustomHttp.
This commit is contained in:
parent
1b4b9f3618
commit
c04b2a4f73
|
|
@ -1057,6 +1057,7 @@ lazy val mainProj = (project in file("main"))
|
||||||
exclude[DirectMissingMethodProblem]("sbt.Defaults.earlyArtifactPathSetting"),
|
exclude[DirectMissingMethodProblem]("sbt.Defaults.earlyArtifactPathSetting"),
|
||||||
exclude[MissingClassProblem]("sbt.internal.server.BuildServerReporter$"),
|
exclude[MissingClassProblem]("sbt.internal.server.BuildServerReporter$"),
|
||||||
exclude[IncompatibleTemplateDefProblem]("sbt.internal.server.BuildServerReporter"),
|
exclude[IncompatibleTemplateDefProblem]("sbt.internal.server.BuildServerReporter"),
|
||||||
|
exclude[MissingClassProblem]("sbt.internal.CustomHttp*"),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.configure(
|
.configure(
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ import sbt.internal.librarymanagement.mavenint.{
|
||||||
PomExtraDependencyAttributes,
|
PomExtraDependencyAttributes,
|
||||||
SbtPomExtraProperties
|
SbtPomExtraProperties
|
||||||
}
|
}
|
||||||
import sbt.internal.librarymanagement.{ CustomHttp => _, _ }
|
import sbt.internal.librarymanagement._
|
||||||
import sbt.internal.nio.{ CheckBuildSources, Globs }
|
import sbt.internal.nio.{ CheckBuildSources, Globs }
|
||||||
import sbt.internal.server.{
|
import sbt.internal.server.{
|
||||||
BspCompileProgress,
|
BspCompileProgress,
|
||||||
|
|
@ -258,8 +258,6 @@ object Defaults extends BuildCommon {
|
||||||
artifactClassifier :== None,
|
artifactClassifier :== None,
|
||||||
checksums := Classpaths.bootChecksums(appConfiguration.value),
|
checksums := Classpaths.bootChecksums(appConfiguration.value),
|
||||||
conflictManager := ConflictManager.default,
|
conflictManager := ConflictManager.default,
|
||||||
CustomHttp.okhttpClientBuilder :== CustomHttp.defaultHttpClientBuilder,
|
|
||||||
CustomHttp.okhttpClient := CustomHttp.okhttpClientBuilder.value.build,
|
|
||||||
pomExtra :== NodeSeq.Empty,
|
pomExtra :== NodeSeq.Empty,
|
||||||
pomPostProcess :== idFun,
|
pomPostProcess :== idFun,
|
||||||
pomAllRepositories :== false,
|
pomAllRepositories :== false,
|
||||||
|
|
@ -2705,7 +2703,7 @@ object Defaults extends BuildCommon {
|
||||||
def dependencyResolutionTask: Def.Initialize[Task[DependencyResolution]] =
|
def dependencyResolutionTask: Def.Initialize[Task[DependencyResolution]] =
|
||||||
Def.taskIf {
|
Def.taskIf {
|
||||||
if (useCoursier.value) CoursierDependencyResolution(csrConfiguration.value)
|
if (useCoursier.value) CoursierDependencyResolution(csrConfiguration.value)
|
||||||
else IvyDependencyResolution(ivyConfiguration.value, CustomHttp.okhttpClient.value)
|
else IvyDependencyResolution(ivyConfiguration.value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -3129,7 +3127,7 @@ object Classpaths {
|
||||||
else None
|
else None
|
||||||
},
|
},
|
||||||
dependencyResolution := dependencyResolutionTask.value,
|
dependencyResolution := dependencyResolutionTask.value,
|
||||||
publisher := IvyPublisher(ivyConfiguration.value, CustomHttp.okhttpClient.value),
|
publisher := IvyPublisher(ivyConfiguration.value),
|
||||||
ivyConfiguration := mkIvyConfiguration.value,
|
ivyConfiguration := mkIvyConfiguration.value,
|
||||||
ivyConfigurations := {
|
ivyConfigurations := {
|
||||||
val confs = thisProject.value.configurations
|
val confs = thisProject.value.configurations
|
||||||
|
|
@ -3432,7 +3430,7 @@ object Classpaths {
|
||||||
private[sbt] def ivySbt0: Initialize[Task[IvySbt]] =
|
private[sbt] def ivySbt0: Initialize[Task[IvySbt]] =
|
||||||
Def.task {
|
Def.task {
|
||||||
Credentials.register(credentials.value, streams.value.log)
|
Credentials.register(credentials.value, streams.value.log)
|
||||||
new IvySbt(ivyConfiguration.value, CustomHttp.okhttpClient.value)
|
new IvySbt(ivyConfiguration.value)
|
||||||
}
|
}
|
||||||
def moduleSettings0: Initialize[Task[ModuleSettings]] = Def.task {
|
def moduleSettings0: Initialize[Task[ModuleSettings]] = Def.task {
|
||||||
val deps = allDependencies.value.toVector
|
val deps = allDependencies.value.toVector
|
||||||
|
|
|
||||||
|
|
@ -41,8 +41,14 @@ object Opts {
|
||||||
}
|
}
|
||||||
object resolver {
|
object resolver {
|
||||||
import sbt.io.syntax._
|
import sbt.io.syntax._
|
||||||
|
@deprecated("Use sonatypeOssReleases instead", "1.7.0")
|
||||||
val sonatypeReleases = Resolver.sonatypeRepo("releases")
|
val sonatypeReleases = Resolver.sonatypeRepo("releases")
|
||||||
|
val sonatypeOssReleases = Resolver.sonatypeOssRepos("releases")
|
||||||
|
|
||||||
|
@deprecated("Use sonatypeOssSnapshots instead", "1.7.0")
|
||||||
val sonatypeSnapshots = Resolver.sonatypeRepo("snapshots")
|
val sonatypeSnapshots = Resolver.sonatypeRepo("snapshots")
|
||||||
|
val sonatypeOssSnapshots = Resolver.sonatypeOssRepos("snapshots")
|
||||||
|
|
||||||
val sonatypeStaging = MavenRepository(
|
val sonatypeStaging = MavenRepository(
|
||||||
"sonatype-staging",
|
"sonatype-staging",
|
||||||
"https://oss.sonatype.org/service/local/staging/deploy/maven2"
|
"https://oss.sonatype.org/service/local/staging/deploy/maven2"
|
||||||
|
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
||||||
/*
|
|
||||||
* sbt
|
|
||||||
* Copyright 2011 - 2018, Lightbend, Inc.
|
|
||||||
* Copyright 2008 - 2010, Mark Harrah
|
|
||||||
* Licensed under Apache License 2.0 (see LICENSE)
|
|
||||||
*/
|
|
||||||
|
|
||||||
package sbt.internal
|
|
||||||
|
|
||||||
import sbt.internal.librarymanagement.{ CustomHttp => LMCustomHttp }
|
|
||||||
import okhttp3._
|
|
||||||
|
|
||||||
import sbt.BuildSyntax._
|
|
||||||
import sbt.KeyRanks._
|
|
||||||
|
|
||||||
object CustomHttp {
|
|
||||||
val okhttpClientBuilder =
|
|
||||||
settingKey[OkHttpClient.Builder]("Builder for the HTTP client.").withRank(CSetting)
|
|
||||||
val okhttpClient =
|
|
||||||
settingKey[OkHttpClient]("HTTP client used for library management.").withRank(CSetting)
|
|
||||||
|
|
||||||
def defaultHttpClientBuilder: OkHttpClient.Builder = {
|
|
||||||
LMCustomHttp.defaultHttpClientBuilder
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -139,7 +139,7 @@ object RemoteCache {
|
||||||
ivySbt := {
|
ivySbt := {
|
||||||
Credentials.register(credentials.value, streams.value.log)
|
Credentials.register(credentials.value, streams.value.log)
|
||||||
val config0 = ivyConfiguration.value
|
val config0 = ivyConfiguration.value
|
||||||
new IvySbt(config0, sbt.internal.CustomHttp.okhttpClient.value)
|
new IvySbt(config0)
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
) ++ inTask(pullRemoteCache)(
|
) ++ inTask(pullRemoteCache)(
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ object Dependencies {
|
||||||
// sbt modules
|
// sbt modules
|
||||||
private val ioVersion = nightlyVersion.getOrElse("1.6.0")
|
private val ioVersion = nightlyVersion.getOrElse("1.6.0")
|
||||||
private val lmVersion =
|
private val lmVersion =
|
||||||
sys.props.get("sbt.build.lm.version").orElse(nightlyVersion).getOrElse("1.6.1")
|
sys.props.get("sbt.build.lm.version").orElse(nightlyVersion).getOrElse("1.7.0-M1")
|
||||||
val zincVersion = nightlyVersion.getOrElse("1.7.0-M2")
|
val zincVersion = nightlyVersion.getOrElse("1.7.0-M2")
|
||||||
|
|
||||||
private val sbtIO = "org.scala-sbt" %% "io" % ioVersion
|
private val sbtIO = "org.scala-sbt" %% "io" % ioVersion
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue