Call IntelliJ plugin from Gradle plugin

Problem : I developed a custom gradle plugin. I would like to have a blocking user interface associated with it in order to receive contextual input from the user during assembly. So I created a swing user interface for it. The problem with this approach is that when gradle starts, build on IntelliJ, if this user interface ever lags behind the IntelliJ window, I could not find a way to programmatically bring it on top of the IntelliJ window.

Therefore, I am thinking of creating an IntIlIJ based on the IntelliJ UI iff , and the gradle project works on IntelliJ.

Question : Is there a way to invoke the IntelliJ user interface for plugins from the gradle task?

+5
source share
1 answer

You can call the IntelliJ plugin from anywhere if you open Socket.

The Grep Console plugin does this: https://github.com/krasa/GrepConsole/tree/master/src/krasa/grepconsole/tail/remotecall

+2
source

All Articles