I figured out the solution to the problem. I was ...
# gradle
i
I figured out the solution to the problem. I was running the task
dependencyInsight
of
core
project in the
other project
. Output:
Copy code
project :core
   variant "apiElements" [
      org.gradle.usage                    = java-api
      org.gradle.libraryelements          = jar (compatible with: classes)
      org.gradle.dependency.bundling      = external
      org.gradle.category                 = library
      org.jetbrains.kotlin.localToProject = public (not requested)
      org.jetbrains.kotlin.platform.type  = jvm
      org.gradle.jvm.version              = 8
   ]
It appears the build classes weren’t being built in the
core
project. Because, the
jar
task wasn’t enabled (because I was using the
shadowJar
). After enabling it the classes were being built. And, the
other
project was able to use the built classes. 😄