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 @@ -990,10 +990,20 @@ object Build {
990
990
List (classesDir(inputs.workspace, inputs.projectName, Scope .Main ))
991
991
else Nil
992
992
993
+ // `test` scope should contains class path to main scope
994
+ val modulesClassesPath = inputs.moduleDependencies.map { depProjectName =>
995
+ classesDir(inputs.workspace, depProjectName, Scope .Main )
996
+ } ++ {
997
+ if (scope == Scope .Test ) inputs.moduleDependencies.map { depProjectName =>
998
+ classesDir(inputs.workspace, depProjectName, Scope .Test )
999
+ } else Nil
1000
+ }
1001
+
993
1002
value(validate(logger, options))
994
1003
995
1004
val fullClassPath = artifacts.compileClassPath ++
996
1005
mainClassesPath ++
1006
+ modulesClassesPath ++
997
1007
artifacts.javacPluginDependencies.map(_._3) ++
998
1008
artifacts.extraJavacPlugins
999
1009
You can’t perform that action at this time.
0 commit comments