File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
modules/build/src/main/scala/scala/build Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -985,10 +985,20 @@ object Build {
985985 List (classesDir(inputs.workspace, inputs.projectName, Scope .Main ))
986986 else Nil
987987
988+ // `test` scope should contains class path to main scope
989+ val modulesClassesPath = inputs.moduleDependencies.map { depProjectName =>
990+ classesDir(inputs.workspace, depProjectName, Scope .Main )
991+ } ++ {
992+ if (scope == Scope .Test ) inputs.moduleDependencies.map { depProjectName =>
993+ classesDir(inputs.workspace, depProjectName, Scope .Test )
994+ } else Nil
995+ }
996+
988997 value(validate(logger, options))
989998
990999 val fullClassPath = artifacts.compileClassPath ++
9911000 mainClassesPath ++
1001+ modulesClassesPath ++
9921002 artifacts.javacPluginDependencies.map(_._3) ++
9931003 artifacts.extraJavacPlugins
9941004
You can’t perform that action at this time.
0 commit comments