This error message indicates that there is a cycle in the module dependency graph of your Java project, where two or more modules depend on each other in a circular manner. This can cause issues with annotation processing, which is a tool used to generate code or perform checks based on annotations in your source code.
To resolve this issue, you need to exclude all modules involved in the cycle from annotation processing. In this case, the modules “data-service-use” and “data-service-biz” are part of the cycle, so you should exclude them both.
To do this, you can add the following line to your build.gradle file:
compileJava {
options.compilerArgs += ["--module-path", configurations.compileClasspath.asPath,
"--add-modules", "ALL-MODULE-PATH",
"--limit-modules", "!data-service-use,!data-service-biz"]
}
This will tell the Java compiler to exclude the “data-service-use” and “data-service-biz” modules from annotation processing. Note that you may need to adjust this configuration depending on your specific project setup.




