Add impl module roots also when gradle-aware make is enabled
This commit is contained in:
+2
-1
@@ -108,8 +108,8 @@ class MultiplatformGradleOrderEnumeratorHandler : OrderEnumerationHandler() {
|
|||||||
override fun addCustomModuleRoots(type: OrderRootType, rootModel: ModuleRootModel, result: MutableCollection<String>, includeProduction: Boolean, includeTests: Boolean): Boolean {
|
override fun addCustomModuleRoots(type: OrderRootType, rootModel: ModuleRootModel, result: MutableCollection<String>, includeProduction: Boolean, includeTests: Boolean): Boolean {
|
||||||
if (type != OrderRootType.CLASSES) return false
|
if (type != OrderRootType.CLASSES) return false
|
||||||
if (!ExternalSystemApiUtil.isExternalSystemAwareModule(GradleConstants.SYSTEM_ID, rootModel.module)) return false
|
if (!ExternalSystemApiUtil.isExternalSystemAwareModule(GradleConstants.SYSTEM_ID, rootModel.module)) return false
|
||||||
if (GradleSystemRunningSettings.getInstance().isUseGradleAwareMake) return false
|
|
||||||
|
|
||||||
|
if (!GradleSystemRunningSettings.getInstance().isUseGradleAwareMake) {
|
||||||
val gradleProjectPath = ExternalSystemModulePropertyManager.getInstance(rootModel.module).getRootProjectPath() ?: return false
|
val gradleProjectPath = ExternalSystemModulePropertyManager.getInstance(rootModel.module).getRootProjectPath() ?: return false
|
||||||
val externalProjectDataCache = ExternalProjectDataCache.getInstance(rootModel.module.project)!!
|
val externalProjectDataCache = ExternalProjectDataCache.getInstance(rootModel.module.project)!!
|
||||||
val externalRootProject = externalProjectDataCache.getRootExternalProject(GradleConstants.SYSTEM_ID,
|
val externalRootProject = externalProjectDataCache.getRootExternalProject(GradleConstants.SYSTEM_ID,
|
||||||
@@ -126,6 +126,7 @@ class MultiplatformGradleOrderEnumeratorHandler : OrderEnumerationHandler() {
|
|||||||
addOutputModuleRoots(sourceSet.sources[ExternalSystemSourceType.SOURCE], result)
|
addOutputModuleRoots(sourceSet.sources[ExternalSystemSourceType.SOURCE], result)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
val implModule = rootModel.module.findJvmImplementationModule()
|
val implModule = rootModel.module.findJvmImplementationModule()
|
||||||
implModule
|
implModule
|
||||||
|
|||||||
Reference in New Issue
Block a user