TeamCity for Plugin CI

I develop a plugin and am trying to get TeamCity correctly configured build the source. This project builds successfully in the IDE but does not TeamCity 7.1 (using the IntelliJ IDEA Project runner).

Starting from the sample plugin in the IntelliJ source (https://github.com/JetBrains/intellij-community/tree/master/samples/plugin), TeamCity can build the plugin successfully. Once I add a class that implements com.intellij.codeInsight.daemon.impl.HighlightVisitor, though, TeamCity can no longer compile the plugin.

Here is the source (which does build just fine in the IDE):
https://github.com/mcholick/team_city_plugin_test

The jdk in .idea/misc.xml is using a variable idea_sdk_name, which I have configtured to use IDEA IC-123.169.

The TeamCity build logs indicated that the package package com.intellij.codeInsight.daemon.impl doesn't exist, but this is the extension point for the highlightVisitor
(see https://github.com/JetBrains/intellij-community/blob/master/platform/platform-resources/src/META-INF/LangExtensionPoints.xml)

How can I configure TeamCity to correctly build a plugin that implements the highlightVisitor language extension point?

2 comments
Comment actions Permalink

You need to make sure that the classpath of the IntelliJ IDEA SDK that you use in your CI build includes idea.jar and not just openapi.jar.

0
Comment actions Permalink

I see; thank you. The default configuration for IDEA Jar Files Patterns under Project JDK actively excluded idea.jar.

0

Please sign in to leave a comment.