diff options
author | Sheng Chen <shengcer@gmail.com> | 2018-03-28 06:34:50 -0400 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-03-28 03:34:50 -0700 |
commit | 8a76f4fe1776f96249ecb3e5d88c8b0a3c161840 (patch) | |
tree | 1820516ec32e1be04c28f11e3902d2031ac86dc6 | |
parent | 0a1ba59f4956cbeb899753df3e2430752c308d1e (diff) | |
download | mill-8a76f4fe1776f96249ecb3e5d88c8b0a3c161840.tar.gz mill-8a76f4fe1776f96249ecb3e5d88c8b0a3c161840.tar.bz2 mill-8a76f4fe1776f96249ecb3e5d88c8b0a3c161840.zip |
use repositories from the mill build to bootstrap idea project generation (#263)
-rw-r--r-- | scalalib/src/mill/scalalib/GenIdea.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scalalib/src/mill/scalalib/GenIdea.scala b/scalalib/src/mill/scalalib/GenIdea.scala index 30456c05..b118f29b 100644 --- a/scalalib/src/mill/scalalib/GenIdea.scala +++ b/scalalib/src/mill/scalalib/GenIdea.scala @@ -1,8 +1,7 @@ package mill.scalalib import ammonite.ops._ -import coursier.Cache -import coursier.maven.MavenRepository +import coursier.Repository import mill.define._ import mill.eval.{Evaluator, PathRef, Result} import mill.{T, scalalib} @@ -71,9 +70,10 @@ object GenIdea { else sys.props.get("MILL_BUILD_LIBRARIES") match { case Some(found) => Agg.from(found.split(',').map(Path(_)).distinct) case None => + val repos = modules.foldLeft(Set.empty[Repository]) { _ ++ _._2.scalaWorker.repositories } val artifactNames = Seq("moduledefs", "core", "scalalib", "scalajslib") val Result.Success(res) = scalalib.Lib.resolveDependencies( - Seq(Cache.ivy2Local, MavenRepository("https://repo1.maven.org/maven2")), + repos.toList, "2.12.4", for(name <- artifactNames) yield ivy"com.lihaoyi::mill-$name:${sys.props("MILL_VERSION")}" |