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:
-
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
Settingsand thenPlugins. Click on the little gear in the top right corner. Then clickInstall from file. -
Navigate to
path to your cloned repository/build/libsand select the jar file there. -
Restart the IDE
-
Start nodecg with nodecg-io installed. The bundle is currently part of it so it should also be loaded.
-
Go to the
nodecg-iotab in the nodecg dashboard. -
Login using your password. If this is your first run, then enter the password with which you want to encrypt your configurations and credentials.
-
Create a new intellij service instance using the left upper menu.
-
Enter the following
{ "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 created intellij service instance to the service dependency of the sample-intellij bundle.
Select the sample-intellij bundle and the intellij service in the left bottom menu and then select the service instance that should be used by the sample-intellij bundle (in this case the name of the previously created intellij instance).
-
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.