File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,23 @@ class MillBuildRootModule()(implicit
38
38
39
39
override def millSourcePath = millBuildRootModuleInfo.projectRoot / os.up / " mill-build"
40
40
41
+ override def resolveDeps (
42
+ deps : Task [Agg [BoundDep ]],
43
+ sources : Boolean = false
44
+ ): Task [Agg [PathRef ]] =
45
+ T .task {
46
+ if (sources == true ) super .resolveDeps(deps, true )()
47
+ else {
48
+ // We need to resolve the sources to make GenIdeaExtendedTests pass,
49
+ // because those do not call `resolveDeps` explicitly for build file
50
+ // `import $ivy`s but instead rely on the deps that are resolved as
51
+ // part of the bootstrapping process. We thus need to make sure
52
+ // bootstrapping the rootModule ends up putting the sources on disk
53
+ val unused = super .resolveDeps(deps, true )()
54
+ super .resolveDeps(deps, false )()
55
+ }
56
+ }
57
+
41
58
override def scalaVersion = " 2.13.10"
42
59
43
60
def scriptSources = T .sources {
You can’t perform that action at this time.
0 commit comments