summaryrefslogtreecommitdiff
path: root/scalalib
diff options
context:
space:
mode:
authorAndrew Richards <richards.aj@gmail.com>2019-04-17 13:17:51 +0200
committerLi Haoyi <haoyi.sg@gmail.com>2019-04-17 19:17:51 +0800
commitddd54c7bb4b79277684ed47bd35ec33d139aaf5a (patch)
tree8b0069ab35dafe19c30ade7596915c5260b441b6 /scalalib
parent05838fdeda290c9041d890f2dae6c9dec2dd0c48 (diff)
downloadmill-ddd54c7bb4b79277684ed47bd35ec33d139aaf5a.tar.gz
mill-ddd54c7bb4b79277684ed47bd35ec33d139aaf5a.tar.bz2
mill-ddd54c7bb4b79277684ed47bd35ec33d139aaf5a.zip
handle projects not in the main build.sc file (#579)
Diffstat (limited to 'scalalib')
-rwxr-xr-xscalalib/src/GenIdeaImpl.scala7
1 files changed, 5 insertions, 2 deletions
diff --git a/scalalib/src/GenIdeaImpl.scala b/scalalib/src/GenIdeaImpl.scala
index 3dd839da..379ce30b 100755
--- a/scalalib/src/GenIdeaImpl.scala
+++ b/scalalib/src/GenIdeaImpl.scala
@@ -66,9 +66,12 @@ object GenIdeaImpl {
fetchMillModules: Boolean = true): Seq[(os.RelPath, scala.xml.Node)] = {
val modules = rootModule.millInternal.segmentsToModules.values
- .collect{ case x: scalalib.JavaModule => (x.millModuleSegments, x)}
+ .collect{ case x: scalalib.JavaModule => x }
+ .flatMap(_.transitiveModuleDeps)
+ .map(x => (x.millModuleSegments, x))
.toSeq
-
+ .distinct
+
val buildLibraryPaths =
if (!fetchMillModules) Nil
else sys.props.get("MILL_BUILD_LIBRARIES") match {