mirror of https://github.com/sbt/sbt.git
Use given instead of implicit val (#8870)
This commit is contained in:
parent
cf9d3d5a7a
commit
4ba457d5d1
|
|
@ -17,7 +17,7 @@ object LockedArtifactsRun {
|
|||
verbosityLevel: Int,
|
||||
log: Logger
|
||||
): Either[String, Seq[(Dependency, Publication, Artifact, Option[File])]] = {
|
||||
implicit val ec: ExecutionContext = cache.ec
|
||||
given ExecutionContext = cache.ec
|
||||
|
||||
if (verbosityLevel >= 1) {
|
||||
log.info("Fetching artifacts from lock file")
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ object SftpRepoSpec extends BaseIvySpecification {
|
|||
def module(org: String) = org % "some-lib" % "version"
|
||||
|
||||
override def resolvers = {
|
||||
implicit val patterns = Resolver.defaultIvyPatterns
|
||||
given Patterns = Resolver.defaultIvyPatterns
|
||||
repo.map { repo =>
|
||||
val privateKeyFile = Paths.get(sys.env("HOME"), ".ssh", s"id_${repo}").toFile
|
||||
Resolver.sftp(repo, s"repo.${repo}.com", 2222).as(repo, privateKeyFile)
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ object DagSpecification extends Properties("Dag") {
|
|||
dependenciesPrecedeNodes(dag.topologicalSort)
|
||||
}
|
||||
|
||||
implicit lazy val arbTestDag: Arbitrary[TestDag] = Arbitrary(Gen.sized(dagGen))
|
||||
given Arbitrary[TestDag] = Arbitrary(Gen.sized(dagGen))
|
||||
private def dagGen(nodeCount: Int): Gen[TestDag] = {
|
||||
val nodes = new HashSet[TestDag]
|
||||
def nonterminalGen(p: Gen.Parameters): Gen[TestDag] = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue