diff --git a/modules/core/src/main/scala/org/scalasteward/core/coursier/CoursierAlg.scala b/modules/core/src/main/scala/org/scalasteward/core/coursier/CoursierAlg.scala index 21236b58ff..600f35f652 100644 --- a/modules/core/src/main/scala/org/scalasteward/core/coursier/CoursierAlg.scala +++ b/modules/core/src/main/scala/org/scalasteward/core/coursier/CoursierAlg.scala @@ -22,8 +22,6 @@ import cats.implicits._ import coursier.cache.{CachePolicy, FileCache} import coursier.core.{Authentication, Project} import coursier.{Fetch, Module, ModuleName, Organization} -import coursier.{Fetch, Info, Module, ModuleName, Organization} -import org.http4s.Uri import org.scalasteward.core.application.Config import org.scalasteward.core.data.Resolver.Credentials import org.scalasteward.core.data.{Dependency, Resolver, Version} diff --git a/modules/core/src/main/scala/org/scalasteward/core/coursier/CoursierDependenciesFetchAlg.scala b/modules/core/src/main/scala/org/scalasteward/core/coursier/CoursierDependenciesFetchAlg.scala index c2e51d70c4..3b04d5dca4 100644 --- a/modules/core/src/main/scala/org/scalasteward/core/coursier/CoursierDependenciesFetchAlg.scala +++ b/modules/core/src/main/scala/org/scalasteward/core/coursier/CoursierDependenciesFetchAlg.scala @@ -32,13 +32,15 @@ trait CoursierDependenciesFetchAlg[F[_]] { } object CoursierDependenciesFetchAlg { - def create[F[_]](implicit parallel: Parallel[F], F: Sync[F]): CoursierDependenciesFetchAlg[F] = - (dependencies: Seq[String]) => + def create[F[_]](implicit parallel: Parallel[F], F: Async[F]): CoursierDependenciesFetchAlg[F] = + (dependencies: Seq[String]) => { Fetch[F](FileCache[F]()) - .withDependencies(dependencies.map { dep => - val Array(org, name, version) = dep.split(':') - Dependency(Module(Organization(org), ModuleName(name)), version) - }) + .withDependencies( + dependencies.map { dep => + val Array(org, name, version) = dep.split(':') + Dependency(Module(Organization(org), ModuleName(name)), version) + }) .io .map(result => new URLClassLoader(result.map(_.toURI.toURL).toArray)) + } }