Repository navigation
Make the IntelliJ plugin installable in every JetBrains IDE: drop its unused Java and Gradle dependencies - #810
Merged
Conversation
…s, which nothing in it uses plugin.xml has required com.intellij.modules.java and com.intellij.gradle since the plugin was added (#377), and the Marketplace derives the products a plugin supports from those: every one of the 75 alpha uploads since April lists only IntelliJ IDEA, IntelliJ IDEA Community, Android Studio, MPS and JetBrains Client, and CLion, GoLand, PyCharm, WebStorm and the other JetBrains IDEs as unsupported. No class of the plugin uses either plugin: its New Project wizard and run configuration are platform extensions, and nothing imports from com.intellij.java or org.jetbrains.plugins.gradle. So both <depends> lines go, and so do their bundledPlugin entries, which kept them on the compile classpath where a later use would have compiled without anyone noticing the dependency it needs. verifyPlugin stayed green throughout because it checks one IDE, the latest stable IntelliJ IDEA, which has both. Validated: :lang:intellij-plugin:test (7 classes, 29 tests, 0 failures, fresh XML), buildPlugin and verifyPlugin against IU-263.7307.353 ("Compatible"), with no compiler warnings.
… Java nor the Gradle plugin verifyPlugin checked one IDE, the latest stable IntelliJ IDEA, which bundles both, so a dependency on either passed it, and every Marketplace upload's verification, while it took the plugin out of every JetBrains IDE but IntelliJ IDEA, Android Studio and MPS. It now also checks the latest stable PyCharm at or above the since-build, where such a dependency is a missing mandatory dependency, which failureLevel already fails on. The cost is a second IDE download (about 1 GB, kept by the IDE cache like IntelliJ IDEA's) and a second verification (about 20 s). Validated: verifyPlugin checks PY-263.7307.351 and IU-263.7307.353, both "Compatible"; with <depends>com.intellij.modules.java</depends> put back into plugin.xml it fails, "PY-263.7307.351 against org.xtclang.idea:0.4.4-SNAPSHOT: 1 missing mandatory dependency", while IntelliJ IDEA still says "Compatible". :lang:spotlessCheck passes.
…ace of verifying against PyCharm
A required dependency on the Java or Gradle plugin is what took the plugin out of every JetBrains IDE but IntelliJ
IDEA, Android Studio and MPS, and a unit test catches it without downloading a second IDE: PluginManifestTest now
allows only com.intellij.modules.platform, TextMate and LSP4IJ as required dependencies. Code that used a plugin it
doesn't declare would still fail verifyPlugin against IntelliJ IDEA, as an unresolved class, so verifyPlugin is back
to that one IDE.
Validated: :lang:intellij-plugin:test (7 classes, 30 tests, 0 failures) and verifyPlugin against IU-263.7307.353
("Compatible"); with <depends>com.intellij.modules.java</depends> put back into plugin.xml the new test fails, naming
com.intellij.modules.java. :lang:spotlessCheck passes.
ggleyzer
approved these changes
Nov 26, 2026
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
…dependency, and Gradle only where the IDE has it plugin.xml required com.intellij.modules.java and com.intellij.gradle, so the Marketplace offers the plugin only for IntelliJ IDEA, Android Studio and MPS (master's #810 drops them there, where nothing used them). Here the plugin uses the Gradle plugin in three places and the Java plugin in one, so: - Gradle is an optional dependency whose xtc-gradle.xml registers what needs it, in CompilerGradle.kt: the roots of the Gradle builds IntelliJ imported (GradleBuildRoots), the model published again after an unlink (GradleBuildUnlinks, out of CompilerBuildUpdates) and after a sync (CompilerGradleSync). The rest of the plugin reaches linked builds' roots through its own extension point, buildRoots; without Gradle only the project's own directory is one, and the embedded compiler builds. - XtcProjectTaskRunner finds Java's file type by name, not through the Java plugin's JavaFileType: without the Java plugin, as in PyCharm, no file is Java, so no module is left to a Java builder. - The Java plugin's bundledPlugin entry goes; Gradle's stays for compiling CompilerGradle.kt. PluginManifestTest requires the remaining dependencies (platform, TextMate, LSP4IJ, the test runner) and checks that Gradle's is optional with its config file, so a required dependency on either plugin fails it, as on master. Validated: :lang:intellij-plugin:test (57 classes, 243 tests, 0 failures, fresh XML); integrationTest and playbookProbe compile; buildPlugin, verifyPluginInternalApis; verifyPlugin "Compatible" against IU-263.7307.353, and, before the verification went back to IntelliJ IDEA alone, against PY-263.7307.351 too (so intellij.testRunner.plugin is in PyCharm, and stays required); no compiler warnings; spotless; detekt reports nothing beyond its baseline.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
…dependency, and Gradle only where the IDE has it plugin.xml required com.intellij.modules.java and com.intellij.gradle, so the Marketplace offers the plugin only for IntelliJ IDEA, Android Studio and MPS (master's #810 drops them there, where nothing used them). Here the plugin uses the Gradle plugin in three places and the Java plugin in one, so: - Gradle is an optional dependency whose xtc-gradle.xml registers what needs it, in CompilerGradle.kt: the roots of the Gradle builds IntelliJ imported (GradleBuildRoots), the model published again after an unlink (GradleBuildUnlinks, out of CompilerBuildUpdates) and after a sync (CompilerGradleSync). The rest of the plugin reaches linked builds' roots through its own extension point, buildRoots; without Gradle only the project's own directory is one, and the embedded compiler builds. - XtcProjectTaskRunner finds Java's file type by name, not through the Java plugin's JavaFileType: without the Java plugin, as in PyCharm, no file is Java, so no module is left to a Java builder. - The Java plugin's bundledPlugin entry goes; Gradle's stays for compiling CompilerGradle.kt. PluginManifestTest requires the remaining dependencies (platform, TextMate, LSP4IJ, the test runner) and checks that Gradle's is optional with its config file, so a required dependency on either plugin fails it, as on master. Validated: :lang:intellij-plugin:test (57 classes, 243 tests, 0 failures, fresh XML); integrationTest and playbookProbe compile; buildPlugin, verifyPluginInternalApis; verifyPlugin "Compatible" against IU-263.7307.353, and, before the verification went back to IntelliJ IDEA alone, against PY-263.7307.351 too (so intellij.testRunner.plugin is in PyCharm, and stays required); no compiler warnings; spotless; detekt reports nothing beyond its baseline.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
…h the test runner among them #810 added PluginManifestTest's requiresOnlyPluginsOfEveryIde to master, which checks the same as this branch's communityDependencies; the rebase onto it kept this branch's test. It now has master's name, description and comment, so that the branch differs from master there only in the list: it also requires intellij.testRunner.plugin, which master's plugin doesn't use. Validated: PluginManifestTest passes; :lang:intellij-plugin:spotlessCheck passes.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
…dependency, and Gradle only where the IDE has it plugin.xml required com.intellij.modules.java and com.intellij.gradle, so the Marketplace offers the plugin only for IntelliJ IDEA, Android Studio and MPS (master's #810 drops them there, where nothing used them). Here the plugin uses the Gradle plugin in three places and the Java plugin in one, so: - Gradle is an optional dependency whose xtc-gradle.xml registers what needs it, in CompilerGradle.kt: the roots of the Gradle builds IntelliJ imported (GradleBuildRoots), the model published again after an unlink (GradleBuildUnlinks, out of CompilerBuildUpdates) and after a sync (CompilerGradleSync). The rest of the plugin reaches linked builds' roots through its own extension point, buildRoots; without Gradle only the project's own directory is one, and the embedded compiler builds. - XtcProjectTaskRunner finds Java's file type by name, not through the Java plugin's JavaFileType: without the Java plugin, as in PyCharm, no file is Java, so no module is left to a Java builder. - The Java plugin's bundledPlugin entry goes; Gradle's stays for compiling CompilerGradle.kt. PluginManifestTest requires the remaining dependencies (platform, TextMate, LSP4IJ, the test runner) and checks that Gradle's is optional with its config file, so a required dependency on either plugin fails it, as on master. Validated: :lang:intellij-plugin:test (57 classes, 243 tests, 0 failures, fresh XML); integrationTest and playbookProbe compile; buildPlugin, verifyPluginInternalApis; verifyPlugin "Compatible" against IU-263.7307.353, and, before the verification went back to IntelliJ IDEA alone, against PY-263.7307.351 too (so intellij.testRunner.plugin is in PyCharm, and stays required); no compiler warnings; spotless; detekt reports nothing beyond its baseline.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
…h the test runner among them #810 added PluginManifestTest's requiresOnlyPluginsOfEveryIde to master, which checks the same as this branch's communityDependencies; the rebase onto it kept this branch's test. It now has master's name, description and comment, so that the branch differs from master there only in the list: it also requires intellij.testRunner.plugin, which master's plugin doesn't use. Validated: PluginManifestTest passes; :lang:intellij-plugin:spotlessCheck passes.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
… place its commits 529-535 #810 merged the plugin's Java and Gradle dependencies' removal to master; #693 was rebased onto it with no commit dropped (errs-693-rebase-2026-11-26-810.tsv maps every commit), as its own fuller change, Gradle optional, is 530. The plan's hashes are #693's new ones, matched by position with the subjects checked, and its header and open-PR line say #810 is merged. 529-535 are placed: the container's resource checks (P12's container group), Gradle optional and the dependency test's master name (a new P7 group, L6), the guide's corrections (P13), the VS Code report's scope (P12's playbook documentation), X39's browser lookup (P7's UP88 group) and the tour videos' slower pacing (P12's tour video). Validated: the appendix runs 1-535 in order with #693's hashes, and all 683 number-hash references agree with it.
lagergren
added a commit
that referenced
this pull request
Nov 27, 2026
…dependency, and Gradle only where the IDE has it plugin.xml required com.intellij.modules.java and com.intellij.gradle, so the Marketplace offers the plugin only for IntelliJ IDEA, Android Studio and MPS (master's #810 drops them there, where nothing used them). Here the plugin uses the Gradle plugin in three places and the Java plugin in one, so: - Gradle is an optional dependency whose xtc-gradle.xml registers what needs it, in CompilerGradle.kt: the roots of the Gradle builds IntelliJ imported (GradleBuildRoots), the model published again after an unlink (GradleBuildUnlinks, out of CompilerBuildUpdates) and after a sync (CompilerGradleSync). The rest of the plugin reaches linked builds' roots through its own extension point, buildRoots; without Gradle only the project's own directory is one, and the embedded compiler builds. - XtcProjectTaskRunner finds Java's file type by name, not through the Java plugin's JavaFileType: without the Java plugin, as in PyCharm, no file is Java, so no module is left to a Java builder. - The Java plugin's bundledPlugin entry goes; Gradle's stays for compiling CompilerGradle.kt. PluginManifestTest requires the remaining dependencies (platform, TextMate, LSP4IJ, the test runner) and checks that Gradle's is optional with its config file, so a required dependency on either plugin fails it, as on master. Validated: :lang:intellij-plugin:test (57 classes, 243 tests, 0 failures, fresh XML); integrationTest and playbookProbe compile; buildPlugin, verifyPluginInternalApis; verifyPlugin "Compatible" against IU-263.7307.353, and, before the verification went back to IntelliJ IDEA alone, against PY-263.7307.351 too (so intellij.testRunner.plugin is in PyCharm, and stays required); no compiler warnings; spotless; detekt reports nothing beyond its baseline.
lagergren
added a commit
that referenced
this pull request
Nov 27, 2026
…h the test runner among them #810 added PluginManifestTest's requiresOnlyPluginsOfEveryIde to master, which checks the same as this branch's communityDependencies; the rebase onto it kept this branch's test. It now has master's name, description and comment, so that the branch differs from master there only in the list: it also requires intellij.testRunner.plugin, which master's plugin doesn't use. Validated: PluginManifestTest passes; :lang:intellij-plugin:spotlessCheck passes.
lagergren
added a commit
that referenced
this pull request
Nov 27, 2026
…dependency, and Gradle only where the IDE has it plugin.xml required com.intellij.modules.java and com.intellij.gradle, so the Marketplace offers the plugin only for IntelliJ IDEA, Android Studio and MPS (master's #810 drops them there, where nothing used them). Here the plugin uses the Gradle plugin in three places and the Java plugin in one, so: - Gradle is an optional dependency whose xtc-gradle.xml registers what needs it, in CompilerGradle.kt: the roots of the Gradle builds IntelliJ imported (GradleBuildRoots), the model published again after an unlink (GradleBuildUnlinks, out of CompilerBuildUpdates) and after a sync (CompilerGradleSync). The rest of the plugin reaches linked builds' roots through its own extension point, buildRoots; without Gradle only the project's own directory is one, and the embedded compiler builds. - XtcProjectTaskRunner finds Java's file type by name, not through the Java plugin's JavaFileType: without the Java plugin, as in PyCharm, no file is Java, so no module is left to a Java builder. - The Java plugin's bundledPlugin entry goes; Gradle's stays for compiling CompilerGradle.kt. PluginManifestTest requires the remaining dependencies (platform, TextMate, LSP4IJ, the test runner) and checks that Gradle's is optional with its config file, so a required dependency on either plugin fails it, as on master. Validated: :lang:intellij-plugin:test (57 classes, 243 tests, 0 failures, fresh XML); integrationTest and playbookProbe compile; buildPlugin, verifyPluginInternalApis; verifyPlugin "Compatible" against IU-263.7307.353, and, before the verification went back to IntelliJ IDEA alone, against PY-263.7307.351 too (so intellij.testRunner.plugin is in PyCharm, and stays required); no compiler warnings; spotless; detekt reports nothing beyond its baseline.
lagergren
added a commit
that referenced
this pull request
Nov 27, 2026
…h the test runner among them #810 added PluginManifestTest's requiresOnlyPluginsOfEveryIde to master, which checks the same as this branch's communityDependencies; the rebase onto it kept this branch's test. It now has master's name, description and comment, so that the branch differs from master there only in the list: it also requires intellij.testRunner.plugin, which master's plugin doesn't use. Validated: PluginManifestTest passes; :lang:intellij-plugin:spotlessCheck passes.
lagergren
added a commit
that referenced
this pull request
Nov 27, 2026
… place its commits 529-535 #810 merged the plugin's Java and Gradle dependencies' removal to master; #693 was rebased onto it with no commit dropped (errs-693-rebase-2026-11-26-810.tsv maps every commit), as its own fuller change, Gradle optional, is 530. The plan's hashes are #693's new ones, matched by position with the subjects checked, and its header and open-PR line say #810 is merged. 529-535 are placed: the container's resource checks (P12's container group), Gradle optional and the dependency test's master name (a new P7 group, L6), the guide's corrections (P13), the VS Code report's scope (P12's playbook documentation), X39's browser lookup (P7's UP88 group) and the tour videos' slower pacing (P12's tour video). Validated: the appendix runs 1-535 in order with #693's hashes, and all 683 number-hash references agree with it.
lagergren
added a commit
that referenced
this pull request
Nov 28, 2026
…dependency, and Gradle only where the IDE has it plugin.xml required com.intellij.modules.java and com.intellij.gradle, so the Marketplace offers the plugin only for IntelliJ IDEA, Android Studio and MPS (master's #810 drops them there, where nothing used them). Here the plugin uses the Gradle plugin in three places and the Java plugin in one, so: - Gradle is an optional dependency whose xtc-gradle.xml registers what needs it, in CompilerGradle.kt: the roots of the Gradle builds IntelliJ imported (GradleBuildRoots), the model published again after an unlink (GradleBuildUnlinks, out of CompilerBuildUpdates) and after a sync (CompilerGradleSync). The rest of the plugin reaches linked builds' roots through its own extension point, buildRoots; without Gradle only the project's own directory is one, and the embedded compiler builds. - XtcProjectTaskRunner finds Java's file type by name, not through the Java plugin's JavaFileType: without the Java plugin, as in PyCharm, no file is Java, so no module is left to a Java builder. - The Java plugin's bundledPlugin entry goes; Gradle's stays for compiling CompilerGradle.kt. PluginManifestTest requires the remaining dependencies (platform, TextMate, LSP4IJ, the test runner) and checks that Gradle's is optional with its config file, so a required dependency on either plugin fails it, as on master. Validated: :lang:intellij-plugin:test (57 classes, 243 tests, 0 failures, fresh XML); integrationTest and playbookProbe compile; buildPlugin, verifyPluginInternalApis; verifyPlugin "Compatible" against IU-263.7307.353, and, before the verification went back to IntelliJ IDEA alone, against PY-263.7307.351 too (so intellij.testRunner.plugin is in PyCharm, and stays required); no compiler warnings; spotless; detekt reports nothing beyond its baseline.
lagergren
added a commit
that referenced
this pull request
Nov 28, 2026
…h the test runner among them #810 added PluginManifestTest's requiresOnlyPluginsOfEveryIde to master, which checks the same as this branch's communityDependencies; the rebase onto it kept this branch's test. It now has master's name, description and comment, so that the branch differs from master there only in the list: it also requires intellij.testRunner.plugin, which master's plugin doesn't use. Validated: PluginManifestTest passes; :lang:intellij-plugin:spotlessCheck passes.
lagergren
added a commit
that referenced
this pull request
Nov 28, 2026
…dependency, and Gradle only where the IDE has it plugin.xml required com.intellij.modules.java and com.intellij.gradle, so the Marketplace offers the plugin only for IntelliJ IDEA, Android Studio and MPS (master's #810 drops them there, where nothing used them). Here the plugin uses the Gradle plugin in three places and the Java plugin in one, so: - Gradle is an optional dependency whose xtc-gradle.xml registers what needs it, in CompilerGradle.kt: the roots of the Gradle builds IntelliJ imported (GradleBuildRoots), the model published again after an unlink (GradleBuildUnlinks, out of CompilerBuildUpdates) and after a sync (CompilerGradleSync). The rest of the plugin reaches linked builds' roots through its own extension point, buildRoots; without Gradle only the project's own directory is one, and the embedded compiler builds. - XtcProjectTaskRunner finds Java's file type by name, not through the Java plugin's JavaFileType: without the Java plugin, as in PyCharm, no file is Java, so no module is left to a Java builder. - The Java plugin's bundledPlugin entry goes; Gradle's stays for compiling CompilerGradle.kt. PluginManifestTest requires the remaining dependencies (platform, TextMate, LSP4IJ, the test runner) and checks that Gradle's is optional with its config file, so a required dependency on either plugin fails it, as on master. Validated: :lang:intellij-plugin:test (57 classes, 243 tests, 0 failures, fresh XML); integrationTest and playbookProbe compile; buildPlugin, verifyPluginInternalApis; verifyPlugin "Compatible" against IU-263.7307.353, and, before the verification went back to IntelliJ IDEA alone, against PY-263.7307.351 too (so intellij.testRunner.plugin is in PyCharm, and stays required); no compiler warnings; spotless; detekt reports nothing beyond its baseline.
lagergren
added a commit
that referenced
this pull request
Nov 28, 2026
…h the test runner among them #810 added PluginManifestTest's requiresOnlyPluginsOfEveryIde to master, which checks the same as this branch's communityDependencies; the rebase onto it kept this branch's test. It now has master's name, description and comment, so that the branch differs from master there only in the list: it also requires intellij.testRunner.plugin, which master's plugin doesn't use. Validated: PluginManifestTest passes; :lang:intellij-plugin:spotlessCheck passes.
lagergren
added a commit
that referenced
this pull request
Nov 28, 2026
… place its commits 529-535 #810 merged the plugin's Java and Gradle dependencies' removal to master; #693 was rebased onto it with no commit dropped (errs-693-rebase-2026-11-26-810.tsv maps every commit), as its own fuller change, Gradle optional, is 530. The plan's hashes are #693's new ones, matched by position with the subjects checked, and its header and open-PR line say #810 is merged. 529-535 are placed: the container's resource checks (P12's container group), Gradle optional and the dependency test's master name (a new P7 group, L6), the guide's corrections (P13), the VS Code report's scope (P12's playbook documentation), X39's browser lookup (P7's UP88 group) and the tour videos' slower pacing (P12's tour video). Validated: the appendix runs 1-535 in order with #693's hashes, and all 683 number-hash references agree with it.
lagergren
added a commit
that referenced
this pull request
Nov 29, 2026
…dependency, and Gradle only where the IDE has it plugin.xml required com.intellij.modules.java and com.intellij.gradle, so the Marketplace offers the plugin only for IntelliJ IDEA, Android Studio and MPS (master's #810 drops them there, where nothing used them). Here the plugin uses the Gradle plugin in three places and the Java plugin in one, so: - Gradle is an optional dependency whose xtc-gradle.xml registers what needs it, in CompilerGradle.kt: the roots of the Gradle builds IntelliJ imported (GradleBuildRoots), the model published again after an unlink (GradleBuildUnlinks, out of CompilerBuildUpdates) and after a sync (CompilerGradleSync). The rest of the plugin reaches linked builds' roots through its own extension point, buildRoots; without Gradle only the project's own directory is one, and the embedded compiler builds. - XtcProjectTaskRunner finds Java's file type by name, not through the Java plugin's JavaFileType: without the Java plugin, as in PyCharm, no file is Java, so no module is left to a Java builder. - The Java plugin's bundledPlugin entry goes; Gradle's stays for compiling CompilerGradle.kt. PluginManifestTest requires the remaining dependencies (platform, TextMate, LSP4IJ, the test runner) and checks that Gradle's is optional with its config file, so a required dependency on either plugin fails it, as on master. Validated: :lang:intellij-plugin:test (57 classes, 243 tests, 0 failures, fresh XML); integrationTest and playbookProbe compile; buildPlugin, verifyPluginInternalApis; verifyPlugin "Compatible" against IU-263.7307.353, and, before the verification went back to IntelliJ IDEA alone, against PY-263.7307.351 too (so intellij.testRunner.plugin is in PyCharm, and stays required); no compiler warnings; spotless; detekt reports nothing beyond its baseline.
lagergren
added a commit
that referenced
this pull request
Nov 29, 2026
…h the test runner among them #810 added PluginManifestTest's requiresOnlyPluginsOfEveryIde to master, which checks the same as this branch's communityDependencies; the rebase onto it kept this branch's test. It now has master's name, description and comment, so that the branch differs from master there only in the list: it also requires intellij.testRunner.plugin, which master's plugin doesn't use. Validated: PluginManifestTest passes; :lang:intellij-plugin:spotlessCheck passes.
lagergren
added a commit
that referenced
this pull request
Nov 29, 2026
…dependency, and Gradle only where the IDE has it plugin.xml required com.intellij.modules.java and com.intellij.gradle, so the Marketplace offers the plugin only for IntelliJ IDEA, Android Studio and MPS (master's #810 drops them there, where nothing used them). Here the plugin uses the Gradle plugin in three places and the Java plugin in one, so: - Gradle is an optional dependency whose xtc-gradle.xml registers what needs it, in CompilerGradle.kt: the roots of the Gradle builds IntelliJ imported (GradleBuildRoots), the model published again after an unlink (GradleBuildUnlinks, out of CompilerBuildUpdates) and after a sync (CompilerGradleSync). The rest of the plugin reaches linked builds' roots through its own extension point, buildRoots; without Gradle only the project's own directory is one, and the embedded compiler builds. - XtcProjectTaskRunner finds Java's file type by name, not through the Java plugin's JavaFileType: without the Java plugin, as in PyCharm, no file is Java, so no module is left to a Java builder. - The Java plugin's bundledPlugin entry goes; Gradle's stays for compiling CompilerGradle.kt. PluginManifestTest requires the remaining dependencies (platform, TextMate, LSP4IJ, the test runner) and checks that Gradle's is optional with its config file, so a required dependency on either plugin fails it, as on master. Validated: :lang:intellij-plugin:test (57 classes, 243 tests, 0 failures, fresh XML); integrationTest and playbookProbe compile; buildPlugin, verifyPluginInternalApis; verifyPlugin "Compatible" against IU-263.7307.353, and, before the verification went back to IntelliJ IDEA alone, against PY-263.7307.351 too (so intellij.testRunner.plugin is in PyCharm, and stays required); no compiler warnings; spotless; detekt reports nothing beyond its baseline.
lagergren
added a commit
that referenced
this pull request
Nov 29, 2026
…h the test runner among them #810 added PluginManifestTest's requiresOnlyPluginsOfEveryIde to master, which checks the same as this branch's communityDependencies; the rebase onto it kept this branch's test. It now has master's name, description and comment, so that the branch differs from master there only in the list: it also requires intellij.testRunner.plugin, which master's plugin doesn't use. Validated: PluginManifestTest passes; :lang:intellij-plugin:spotlessCheck passes.
lagergren
added a commit
that referenced
this pull request
Nov 30, 2026
…dependency, and Gradle only where the IDE has it plugin.xml required com.intellij.modules.java and com.intellij.gradle, so the Marketplace offers the plugin only for IntelliJ IDEA, Android Studio and MPS (master's #810 drops them there, where nothing used them). Here the plugin uses the Gradle plugin in three places and the Java plugin in one, so: - Gradle is an optional dependency whose xtc-gradle.xml registers what needs it, in CompilerGradle.kt: the roots of the Gradle builds IntelliJ imported (GradleBuildRoots), the model published again after an unlink (GradleBuildUnlinks, out of CompilerBuildUpdates) and after a sync (CompilerGradleSync). The rest of the plugin reaches linked builds' roots through its own extension point, buildRoots; without Gradle only the project's own directory is one, and the embedded compiler builds. - XtcProjectTaskRunner finds Java's file type by name, not through the Java plugin's JavaFileType: without the Java plugin, as in PyCharm, no file is Java, so no module is left to a Java builder. - The Java plugin's bundledPlugin entry goes; Gradle's stays for compiling CompilerGradle.kt. PluginManifestTest requires the remaining dependencies (platform, TextMate, LSP4IJ, the test runner) and checks that Gradle's is optional with its config file, so a required dependency on either plugin fails it, as on master. Validated: :lang:intellij-plugin:test (57 classes, 243 tests, 0 failures, fresh XML); integrationTest and playbookProbe compile; buildPlugin, verifyPluginInternalApis; verifyPlugin "Compatible" against IU-263.7307.353, and, before the verification went back to IntelliJ IDEA alone, against PY-263.7307.351 too (so intellij.testRunner.plugin is in PyCharm, and stays required); no compiler warnings; spotless; detekt reports nothing beyond its baseline.
lagergren
added a commit
that referenced
this pull request
Nov 30, 2026
…h the test runner among them #810 added PluginManifestTest's requiresOnlyPluginsOfEveryIde to master, which checks the same as this branch's communityDependencies; the rebase onto it kept this branch's test. It now has master's name, description and comment, so that the branch differs from master there only in the list: it also requires intellij.testRunner.plugin, which master's plugin doesn't use. Validated: PluginManifestTest passes; :lang:intellij-plugin:spotlessCheck passes.
lagergren
added a commit
that referenced
this pull request
Nov 30, 2026
…dependency, and Gradle only where the IDE has it plugin.xml required com.intellij.modules.java and com.intellij.gradle, so the Marketplace offers the plugin only for IntelliJ IDEA, Android Studio and MPS (master's #810 drops them there, where nothing used them). Here the plugin uses the Gradle plugin in three places and the Java plugin in one, so: - Gradle is an optional dependency whose xtc-gradle.xml registers what needs it, in CompilerGradle.kt: the roots of the Gradle builds IntelliJ imported (GradleBuildRoots), the model published again after an unlink (GradleBuildUnlinks, out of CompilerBuildUpdates) and after a sync (CompilerGradleSync). The rest of the plugin reaches linked builds' roots through its own extension point, buildRoots; without Gradle only the project's own directory is one, and the embedded compiler builds. - XtcProjectTaskRunner finds Java's file type by name, not through the Java plugin's JavaFileType: without the Java plugin, as in PyCharm, no file is Java, so no module is left to a Java builder. - The Java plugin's bundledPlugin entry goes; Gradle's stays for compiling CompilerGradle.kt. PluginManifestTest requires the remaining dependencies (platform, TextMate, LSP4IJ, the test runner) and checks that Gradle's is optional with its config file, so a required dependency on either plugin fails it, as on master. Validated: :lang:intellij-plugin:test (57 classes, 243 tests, 0 failures, fresh XML); integrationTest and playbookProbe compile; buildPlugin, verifyPluginInternalApis; verifyPlugin "Compatible" against IU-263.7307.353, and, before the verification went back to IntelliJ IDEA alone, against PY-263.7307.351 too (so intellij.testRunner.plugin is in PyCharm, and stays required); no compiler warnings; spotless; detekt reports nothing beyond its baseline.
lagergren
added a commit
that referenced
this pull request
Nov 30, 2026
…h the test runner among them #810 added PluginManifestTest's requiresOnlyPluginsOfEveryIde to master, which checks the same as this branch's communityDependencies; the rebase onto it kept this branch's test. It now has master's name, description and comment, so that the branch differs from master there only in the list: it also requires intellij.testRunner.plugin, which master's plugin doesn't use. Validated: PluginManifestTest passes; :lang:intellij-plugin:spotlessCheck passes.
lagergren
added a commit
that referenced
this pull request
Dec 1, 2026
…dependency, and Gradle only where the IDE has it plugin.xml required com.intellij.modules.java and com.intellij.gradle, so the Marketplace offers the plugin only for IntelliJ IDEA, Android Studio and MPS (master's #810 drops them there, where nothing used them). Here the plugin uses the Gradle plugin in three places and the Java plugin in one, so: - Gradle is an optional dependency whose xtc-gradle.xml registers what needs it, in CompilerGradle.kt: the roots of the Gradle builds IntelliJ imported (GradleBuildRoots), the model published again after an unlink (GradleBuildUnlinks, out of CompilerBuildUpdates) and after a sync (CompilerGradleSync). The rest of the plugin reaches linked builds' roots through its own extension point, buildRoots; without Gradle only the project's own directory is one, and the embedded compiler builds. - XtcProjectTaskRunner finds Java's file type by name, not through the Java plugin's JavaFileType: without the Java plugin, as in PyCharm, no file is Java, so no module is left to a Java builder. - The Java plugin's bundledPlugin entry goes; Gradle's stays for compiling CompilerGradle.kt. PluginManifestTest requires the remaining dependencies (platform, TextMate, LSP4IJ, the test runner) and checks that Gradle's is optional with its config file, so a required dependency on either plugin fails it, as on master. Validated: :lang:intellij-plugin:test (57 classes, 243 tests, 0 failures, fresh XML); integrationTest and playbookProbe compile; buildPlugin, verifyPluginInternalApis; verifyPlugin "Compatible" against IU-263.7307.353, and, before the verification went back to IntelliJ IDEA alone, against PY-263.7307.351 too (so intellij.testRunner.plugin is in PyCharm, and stays required); no compiler warnings; spotless; detekt reports nothing beyond its baseline.
lagergren
added a commit
that referenced
this pull request
Dec 1, 2026
…h the test runner among them #810 added PluginManifestTest's requiresOnlyPluginsOfEveryIde to master, which checks the same as this branch's communityDependencies; the rebase onto it kept this branch's test. It now has master's name, description and comment, so that the branch differs from master there only in the list: it also requires intellij.testRunner.plugin, which master's plugin doesn't use. Validated: PluginManifestTest passes; :lang:intellij-plugin:spotlessCheck passes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Since the plugin was added (#377),
plugin.xmlhas requiredcom.intellij.modules.javaandcom.intellij.gradle. The JetBrains Marketplace derives a plugin's supported products from its dependencies. Every one of the 75 alpha uploads since April (the Marketplace API'scompatibleVersions) lists only IntelliJ IDEA, IntelliJ IDEA Community, Android Studio, MPS and JetBrains Client. CLion, GoLand, PyCharm, WebStorm, RustRover, Rider and the others show as unsupported.Nothing in the plugin uses either plugin. The New Project wizard and the run configuration are platform extensions, and no source imports from
com.intellij.javaororg.jetbrains.plugins.gradle.verifyPlugin, which every Marketplace upload depends on, stayed green throughout because it checks only the latest stable IntelliJ IDEA, which bundles both plugins.What
<depends>lines and theirbundledPluginentries. With them gone from the compile classpath, a later use won't compile without someone noticing the dependency it needs.PluginManifestTestallows onlycom.intellij.modules.platform, TextMate and LSP4IJ as required dependencies. That catches a regression like this one without a second IDE inverifyPlugin. Code that used an undeclared plugin's classes would still failverifyPluginagainst IntelliJ IDEA, as an unresolved class.Validation
:lang:intellij-plugin:test: 7 classes, 30 tests, 0 failures, with no compiler warnings.verifyPluginagainstIU-263.7307.353: Compatible.<depends>com.intellij.modules.java</depends>put back, the new test fails, namingcom.intellij.modules.java.verifyPluginran in this PR's CI against PyCharm 2026.3 (PY-263.7307.351) as well: Compatible, so the plugin loads in an IDE that has neither the Java nor the Gradle plugin.