I've published a dependency locally. The dependency is located on path
C:\Users\myusername\.m2\repository\com\mycompany\my-library\1.0\*
which I think is the default path on Windows.
Now, on a different project I try to consume this library.
My build.gradle
looks like this(among other dependencies)
...
buildscript {
repositories {
mavenLocal()
}
}
...
dependencies {
implementation('com.mycompany:my-library:1.0')
}
I'm getting build errors that some classes do not exist etc...
Shouldn't this be enough to identify the dependency from local repository?
I also use a remote repository for other dependencies but the artifact name+version is unique(com.mycompany:my-library:1.0). I would expect to find this dependency from the local repository. Instead, I'm getting build errors that some classes do not exists etc...
EDIT:
The classes should be in the aforementioned library. I used ./gradlew publishToMavenLocal
to publish the library locally, and I can see that it's there. Is is generated with the correct version etc..