Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I install Groovy plugin in WebStorm?

I'm developing with WebStorm. I want to have syntax highlighting for Jenkins Groovy pipelines.

It's possible to use InteliJ IDEA for editing Jenkinsfiles, but it's obviously inconvenient to switch back and forth between IDEs.

Can I install Groovy plugin from IntelliJ IDEA Community Edition in WebStorm? If yes - how?

like image 753
Ginden Avatar asked Oct 13 '17 10:10

Ginden


People also ask

How do I get Groovy library in IntelliJ?

In the Project tool window, right-click the project and from the context menu, select Add Framework Support. In the dialog that opens, select Groovy and click OK. IntelliJ IDEA adds the Groovy SDK to your project and you can add Groovy classes and Groovy scripts.

Which version of Groovy is compatible with Java 11?

Since you use Groovy 2.5. 6 and Java 11 in the project, you need to add the extra JAXB Jars that this Groovy version comes with to the project as dependencies.

How do I know if Groovy is installed on Windows?

Step16: To check whether Groovy is installed correctly or not, click on Command prompt and type groovy ? v and press enter. It will display the installer version of groovy of your system.

Does IntelliJ come Groovy?

Groovy The Groovy plugin is bundled with IntelliJ IDEA and enabled by default. IntelliJ IDEA supports the latest stable version of Groovy and Groovy 4 syntax.


1 Answers

I didn't get that plugin to work either, but as a partial alternative, you can use this TextMate bundle: https://github.com/textmate/groovy.tmbundle

  1. Download the repository (https://github.com/textmate/groovy.tmbundle/archive/master.zip)
  2. Extract the zip file to some directory on your system
  3. In WebStorm / IntelliJ / etc., go to File > Settings > Editor > TextMate bundles, click on the + sign and point it to the directory you just extracted to
like image 110
rkok Avatar answered Oct 17 '22 21:10

rkok