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 {
985
985
List (classesDir(inputs.workspace, inputs.projectName, Scope .Main ))
986
986
else Nil
987
987
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
+
988
997
value(validate(logger, options))
989
998
990
999
val fullClassPath = artifacts.compileClassPath ++
991
1000
mainClassesPath ++
1001
+ modulesClassesPath ++
992
1002
artifacts.javacPluginDependencies.map(_._3) ++
993
1003
artifacts.extraJavacPlugins
994
1004
You can’t perform that action at this time.
0 commit comments