I am working on a JFlex lexer for a plugin, and to test it, I have a separate application subproject in gradle. The application has a compile and runtime dependency on the com.intellij.lexer classes, such as FlexAdapter. I am trying to figure out how to add those dependencies to my build.gradle. My first attempt seemed to work, but I think it got the wrong version of the classes:
For my next attempt, I tried scanning dependencies on the actual gradle plugin project to try and figure out the dependency to add. Using Analyze Dependencies, and selecting the class that uses FlexAdapter, I get this:
But it's unclear to me what to add to build.gradle. I tried:
but it didn't work. Why would httpclient have anything to do with it anyway?
Ultimately I just want to be able to use com.intellij.lexer.FlexAdapter in a non-plugin gradle build for testing purposes.