IntelliJ sample
Using the IntelliJ sample bundle
The IntelliJ example bundle in samples/intellij-integration
Shows how to
connect to a JetBrains IDE and print all installed plugins. Here is a guide to
how to get it working:
Prerequisites
You will need a working nodecg-io
installation. If you have non yet take a
look at installation guide. You may need to
install this bundle, so take a look at the
“Try an included sample”-Guide. It
will also tell you how to log in and how to use the GUI.
You also need:
- Clone this Git Repository.
- Make sure you've Java 11 or newer installed.
- Run
gradlew build
(on Windows) or./gradlew build
(on Linux) inside the cloned repository. - Inside your JetBrains IDE go to
Settings
and thenPlugins
. Click on the little gear in the top right corner. Then clickInstall from file
. - Navigate to
path to your cloned repository/build/libs
and select the jar file there. - Restart the IDE.
Configure the IntelliJ sample bundle
- In NodeCG, create a new IntelliJ service instance.
-
Enter the host and port of your IDE's HTTP server:
{ "address": "127.0.0.1:19524" }
This tells nodecg-io to look for your IDE's HTTP server on your computer at port
19524
. If you want it to run on another port, please follow the guidelines here. -
Set the sample's (
intellij-integration
) dependency to be the newly created service instance (of typeintellij
). -
Check the NodeCG logs:
You should see an error or a list of all plugins installed at your IDE including the preinstalled ones by JetBrains.