[tasks] convert intellij.platform.tasks.impl to a content module (IJPL-189531)

This is needed to have an explicit dependency on the backend in it (IJPL-188916), also, it fixes the problem with missing dependency on vcs.impl module (IJPL-160364).

The change shouldn't affect external plugins which use classes from that module, because the new module will be automatically added to their dependencies.

GitOrigin-RevId: 991b8cdc1547a9b44028e704dc3d5d576f53b7e9
This commit is contained in:
Nikolay Chashnikov
2025-05-27 18:36:47 +00:00
committed by intellij-monorepo-bot
parent facf998a06
commit 5219e4de24
6 changed files with 8 additions and 5 deletions
@@ -71,7 +71,7 @@ private val PLATFORM_IMPLEMENTATION_MODULES = java.util.List.of(
"intellij.platform.scriptDebugger.ui",
"intellij.platform.smRunner",
"intellij.platform.structureView.impl",
"intellij.platform.tasks.impl",
"intellij.platform.tasks",
"intellij.platform.testRunner",
"intellij.platform.rd.community",
"intellij.remoteDev.util",
@@ -176,7 +176,8 @@ private val knownNotFullyMigratedPluginIds: Set<String> = hashSetOf(
* To avoid breaking compatibility, dependencies on these modules are automatically added to plugins which define dependency on the platform using
* `<depends>com.intellij.modules.platform</depends` or `<depends>com.intellij.modules.lang</depends` tags.
*/
private val contentModulesExtractedInCorePluginWhichCanBeUsedFromExternalPlugins = listOf<String>(
private val contentModulesExtractedInCorePluginWhichCanBeUsedFromExternalPlugins = listOf(
"intellij.platform.tasks.impl",
)
private fun collectDirectDependenciesInOldFormat(rootDescriptor: IdeaPluginDescriptorImpl,
@@ -182,9 +182,6 @@
<xi:include href="/META-INF/duplicates-analysis.xml">
<xi:fallback/>
</xi:include>
<xi:include href="/META-INF/tasks.xml">
<xi:fallback/>
</xi:include>
<xi:include href="/META-INF/ExternalProcessAuthHelper.xml">
<xi:fallback/>
@@ -7,6 +7,7 @@
<module name="intellij.platform.lvcs.impl"/>
<module name="intellij.platform.smRunner.vcs"/>
<module name="intellij.platform.collaborationTools"/>
<module name="intellij.platform.tasks.impl"/>
<module name="intellij.libraries.microba"/>
<module name="intellij.libraries.skiko"/>
<module name="intellij.platform.compose"/>
@@ -1,4 +1,7 @@
<idea-plugin>
<dependencies>
<module name="intellij.platform.vcs.impl"/>
</dependencies>
<extensionPoints>
<extensionPoint name="tasks.contextProvider" interface="com.intellij.tasks.context.WorkingContextProvider" dynamic="true"/>
<extensionPoint name="tasks.repositoryType" interface="com.intellij.tasks.TaskRepositoryType" dynamic="true"/>
@@ -16,6 +16,7 @@
<dependencies>
<plugin id="com.intellij.modules.xml" />
<module name="intellij.platform.vcs.impl"/>
<module name="intellij.platform.tasks.impl"/>
</dependencies>
<depends optional="true" config-file="java-contexts.xml">com.intellij.java</depends>
<!--