diff options
Diffstat (limited to 'scalalib/src/GenIdeaImpl.scala')
-rwxr-xr-x | scalalib/src/GenIdeaImpl.scala | 7 |
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 { |