Search code examples
javaunit-testingintellij-ideagroovyjunit

Intellij idea 2022.1.3 ultimate showing error java: JPS incremental annotation processing is disabled


I am using 2022.1.3 ultimate version and while running groovy test cases I am getting this error

java: JPS incremental annotation processing is disabled. Compilation results on partial recompilation may be inaccurate. Use build process "jps.track.ap.dependencies" VM flag to enable/disable incremental annotation processing environment.

Due to this error even running a single test takes lot of time. I have tried adding following option in shared build process VM options and also in run configuration but that is not helping.

-Djps.track.ap.dependencies=false 

Is anyone else noticing this same issue ?

Original question, How to run a single groovy test case from a large project ?


Solution

  • I faced the same issue with intellij 2022 version. This issue occurs due to old lombok version like 1.16.16 or older. Update the lombok version to latest like 1.18.24. This version will resolve the error.

        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <version>1.18.24</version>
        </dependency>