Skip to content

Commit

Permalink
Apply coursier config files
Browse files Browse the repository at this point in the history
  • Loading branch information
jilen committed Nov 24, 2023
1 parent ced50e0 commit dd0344b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scalalib/src/mill/scalalib/CoursierModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import mill.define.Task
import mill.api.PathRef

import scala.annotation.nowarn
import scala.concurrent.Await
import scala.concurrent.duration.Duration
import scala.concurrent.ExecutionContext.Implicits.global

/**
* This module provides the capability to resolve (transitive) dependencies from (remote) repositories.
Expand Down Expand Up @@ -60,7 +63,11 @@ trait CoursierModule extends mill.Module {
* The repositories used to resolved dependencies with [[resolveDeps()]].
*/
def repositoriesTask: Task[Seq[Repository]] = T.task {
Resolve.defaultRepositories
val repos = Await.result(
Resolve().finalRepositories.future(),
Duration.Inf
)
repos
}

/**
Expand Down

0 comments on commit dd0344b

Please sign in to comment.