Skip to content

Commit 92a7f91

Browse files
committed
fix(java): update module data retrieval in JavaBuildSystemProvider
1 parent bb5439b commit 92a7f91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

java/src/main/kotlin/cc/unitmesh/idea/provider/JavaBuildSystemProvider.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ open class JavaBuildSystemProvider : BuildSystemProvider() {
7979

8080
/// collect Gradle dependencies
8181
ModuleUtilCore.findModuleForFile(psiFile)?.also {
82-
val moduleData = CachedModuleDataFinder.findMainModuleData(it)
82+
// val moduleData = CachedModuleDataFinder.findMainModuleData(it)
83+
val moduleData = CachedModuleDataFinder.findMainModuleData(project, it.moduleFilePath)
8384
val libDepData = ExternalSystemApiUtil.findAllRecursively<LibraryDependencyData?>(
8485
moduleData,
8586
ProjectKeys.LIBRARY_DEPENDENCY

0 commit comments

Comments
 (0)