Any ideas? I did a little update, adding a kotlin ...
# kapt
a
Any ideas? I did a little update, adding a kotlin interface leads to
Copy code
WARNING: An illegal reflective access operation has occurred
and
Copy code
Execution failed for task ':modules:backend-api:category:category-api:kaptGenerateStubsTestKotlin'.
> java.io.IOException: The system cannot find the path specified
t
which Kotlin version are you using?
a
1.9.0
t
Try to update to the latest release first
a
Now creating an interface works, but when I want to utilize this interface in another module, for example in category-impl, then it still throws:
Copy code
> Task :modules:backend-api:category:category-impl:kaptKotlin
C:\Users\zwo7a\IdeaProjects\FreshNearMe\modules\backend-api\category\category-impl\build\tmp\kapt3\stubs\main\application\CategoryApiImpl.java:7: error: cannot find symbol
public final class CategoryApiImpl implements CategoryApi {
                                              ^
  symbol: class CategoryApi

> Task :modules:backend-api:category:category-impl:kaptKotlin FAILED

Execution failed for task ':modules:backend-api:category:category-impl:kaptKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask$KaptExecutionWorkAction
   > java.lang.reflect.InvocationTargetException (no error message)
and it also throws this warnings
Copy code
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jetbrains.kotlin.kapt3.util.ModuleManipulationUtilsKt (file:/C:/Users/zwo7a/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-annotation-processing-gradle/1.9.22/366b6f8a7b7811a120730dc9ad70600c0d141031/kotlin-annotation-processing-gradle-1.9.22.jar) to constructor com.sun.tools.javac.util.Context()
WARNING: Please consider reporting this to the maintainers of org.jetbrains.kotlin.kapt3.util.ModuleManipulationUtilsKt
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jetbrains.kotlin.kapt3.util.ModuleManipulationUtilsKt (file:/C:/Users/zwo7a/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-annotation-processing-gradle/1.9.22/366b6f8a7b7811a120730dc9ad70600c0d141031/kotlin-annotation-processing-gradle-1.9.22.jar) to constructor com.sun.tools.javac.util.Context()
WARNING: Please consider reporting this to the maintainers of org.jetbrains.kotlin.kapt3.util.ModuleManipulationUtilsKt
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
t
I want to utilize this interface in another module
Do you have a dependency on another module where
CategoryApi
is defined?
a
image.png
t
hmm. Could you share your project?