diff --git a/tools/idea/jps-plugin/src/main/java/org/teavm/idea/jps/TeaVMBuild.java b/tools/idea/jps-plugin/src/main/java/org/teavm/idea/jps/TeaVMBuild.java index a44e5059e..dd63a7119 100644 --- a/tools/idea/jps-plugin/src/main/java/org/teavm/idea/jps/TeaVMBuild.java +++ b/tools/idea/jps-plugin/src/main/java/org/teavm/idea/jps/TeaVMBuild.java @@ -489,6 +489,9 @@ class TeaVMBuild { if (dependencyOutput != null) { classPathEntries.add(dependencyOutput.getPath()); } + for (JpsModuleSourceRoot sourceRoot : moduleDependency.getModule().getSourceRoots()) { + buildStrategy.addSourcesDirectory(sourceRoot.getFile().getAbsolutePath()); + } } else if (dependency instanceof JpsLibraryDependency) { JpsLibrary library = ((JpsLibraryDependency) dependency).getLibrary(); if (library == null) {