How to use classes located in the intellij.grid.impl?

Hello!

There is a desire to use Grid module features to render Tables for custom language (ImpEx), in particular, text-range specific content rendering with support of the CsvTableDataFragmentFile class.

After declaring dependency on bundled plugin “intellij.grid.plugin” there is no visibility to “intellij.grid.impl” module and related classes.

That class is available during the runtime via Class.forName(..), but not visible during compilation time.

What should be the right way to enable complete Grid capabilities in the 3rd-party plugin?

Thanks in advance!

What a great day, looks like it is possible with the bundleModules dependency extension helper since Gradle Plugin 2.1.0.

So, final working dependency looks like that:

dependencies {
    intellijPlatform {
        bundledModules(
            "intellij.grid.impl"
        )

        bundledPlugins(
            "intellij.grid.plugin",
        }
   }
}

@jakub.chrzanowski thank you for the feature above, it would be great to have it described here → Dependencies Extension | IntelliJ Platform Plugin SDK.