Configuring a Plugin for Split Mode
Split Mode configuration in the Gradle build script allows for running development sandbox IDEs in mode emulating the remote development scenario, with both frontend and backend processes running locally. To make a plugin work natively in split mode, see plugin modularization.
Basic Configuration
Enable Split Mode in the intellijPlatform {} extension:
The two relevant properties are:
splitMode– starts separate frontend and backend processessplitModeTarget– selects where the plugin is installed
Choosing the Installation Target
Choose splitModeTarget according to the code being exercised:
BACKENDfor backend-only functionalityFRONTENDfor frontend-only functionalityBOTHfor typical modular plugins that contain frontend, backend, and shared modules
For split plugin development, BOTH is the most common choice.
Custom Run and Test Tasks
Custom split-mode tasks can be declared with intellijPlatformTesting:
These tasks get dedicated sandboxes and can be used like other development or test tasks. See IntelliJ Platform Testing Extension for more details.
Typical Next Step
After the Gradle configuration is in place, the next step is deciding how the plugin code should be distributed between frontend, backend, and shared modules. See Implementing a Feature for Split Mode.