Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small improvements to Idea project generation #616

Merged
merged 11 commits into from Jun 28, 2019
Next Next commit
Fixes #532
  • Loading branch information
Andres Pipicello committed Jun 26, 2019
commit 308d5620948e0f82f60cd553116021a5d2bcd9e8
10 changes: 5 additions & 5 deletions scalalib/src/GenIdeaImpl.scala
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package mill.scalalib

import ammonite.runtime.SpecialClassLoader
import coursier.Repository
import mill.define._
import mill.eval.{Evaluator, PathRef, Result}
import coursier.{LocalRepositories, Repositories}
import mill.api.Ctx.{Home, Log}
import mill.api.Strict.Agg
import mill.api.{Loose, Strict}
import mill.api.{Loose, Result, Strict}
import mill.define._
import mill.eval.{Evaluator, PathRef}
import mill.{T, scalalib}
import os.Path

Expand Down Expand Up @@ -77,7 +77,7 @@ object GenIdeaImpl {
else sys.props.get("MILL_BUILD_LIBRARIES") match {
case Some(found) => found.split(',').map(os.Path(_)).distinct.toList
case None =>
val repos = modules.foldLeft(Set.empty[Repository]) { _ ++ _._2.repositories }
val repos = Seq(LocalRepositories.ivy2Local, Repositories.central)
lefou marked this conversation as resolved.
Show resolved Hide resolved
val artifactNames = Seq("main-moduledefs", "main-api", "main-core", "scalalib", "scalajslib")
val Result.Success(res) = scalalib.Lib.resolveDependencies(
repos.toList,
Expand Down