IntelliJ seems is not able to resolve Groovy Symbols defined in other projects

Answered

We are using Groovy for our Integration Tests, in the build.gradle, we have cutomized configuration like in project A:

integTestCompile project(':common')

 

common is another project:

The command line, we have no problem to run integration tests via ./gradlew integTest. However, in IntelliJ, it looks like it cannot find the symbols defined in the common project. 

In my project A, we have 

 

The SamlSpec defines a class, which is extend from a class defined in the common project, however IntelliJ cannot find them.

The import statement is also red

Can you help me fix this issue in IntelliJ? Without fixing this, we cannot debug this in IntelliJ. Thank you!

 

IntelliJ version: 2018.3.6 (Ultimate Edition)

OS: RedHat Equivalent Linux 6.x

0
1 comment

Does IDE build work? If you set IntelliJ IDEA or Gradle for Settings (Preferences on macOS) | Build, Execution, Deployment | Build Tools | Gradle | Build and run using?

Make sure the Gradle Reload (action in Gradle tool window) completes successfully. try using different Gradle and JDK versions for IDE (make sure to use the versions that were released not later than 2018 so that Gradle version is compatible with the IDE version).

Try File | Invalidate Caches/Restart.. | Invalidate and Restart action. And re-import project fresh using File | new | project from Existing Sources action.

Also try IDE version from https://www.jetbrains.com/idea/download

0

Please sign in to leave a comment.