Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calling IntelliJ plugin from Gradle plugin

Problem: I have developed a custom gradle plugin. I would like to have a blocking UI associated with it so as to take contextual input from the user during the build. Hence I created swing based UI for it. The problem with this approach is that, while running gradle build on IntelliJ, if this UI ever goes behind the IntelliJ window, I couldn't figure out a way of programatically bringing it on top of IntelliJ window.

Hence I am thinking of popping up an IntelliJ based UI iff the gradle build of the project is running on IntelliJ.

Question: Is there a way to call a custom IntelliJ plugin's UI from a Gradle task?

like image 971
Mudit Krishna Mathur Avatar asked Oct 29 '22 20:10

Mudit Krishna Mathur


1 Answers

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

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

like image 143
Meo Avatar answered Nov 12 '22 23:11

Meo