Skip to content

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:

  1. Clone this Git Repository.
  2. Make sure you've Java 11 or newer installed.
  3. Run gradlew build (on Windows) or ./gradlew build (on Linux) inside the cloned repository.
  4. Inside your JetBrains IDE go to Settings and then Plugins. Click on the little gear in the top right corner. Then click Install from file.
  5. Navigate to path to your cloned repository/build/libs and select the jar file there.
  6. Restart the IDE.

Configure the IntelliJ sample bundle

  1. In NodeCG, create a new IntelliJ service instance.
  2. 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.

  3. Set the sample's (intellij-integration) dependency to be the newly created service instance (of type intellij).

  4. 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.