IJPL-156810 <idea-plugin> "package": resolve in module dependencies

GitOrigin-RevId: 6db3859fb555b6cba508195866292ce56c08601d
This commit is contained in:
Yann Cébron
2024-06-18 13:47:33 +02:00
committed by intellij-monorepo-bot
parent 522f2ab43e
commit 56773a418e

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.idea.devkit.dom.impl;
import com.intellij.codeInsight.daemon.quickFix.CreateClassOrPackageFix;
@@ -21,8 +21,8 @@ import org.jetbrains.idea.devkit.dom.IdeaPlugin;
/**
* Resolve {@code idea-plugin@package} attribute using:
* <ol>
* <li>with plugin ID/name: project production scope, as main module may not contain any sources itself</li>
* <li>no plugin ID: module production scope</li>
* <li>with plugin ID/name: project production scope, as main module may not contain any sources itself and have no dependencies defined</li>
* <li>no plugin ID: module + dependencies production scope</li>
* </ol>
*/
public class IdeaPluginPackageConverter extends PsiPackageConverter {
@@ -65,7 +65,7 @@ public class IdeaPluginPackageConverter extends PsiPackageConverter {
return GlobalSearchScopesCore.projectProductionScope(module.getProject());
}
return module.getModuleScope(false);
return module.getModuleWithDependenciesAndLibrariesScope(false);
}