Hi, I am new to Gradle and would greatly appreciate some help with figuring out why gradle does not download a dependency from a local repository.
(I apologize in advance for the possibly long and erratic message.)
The only error message I get is:
- What went wrong:
Execution failed for task ‘:service:compileJava’.
Could not resolve all files for configuration ‘:service:compileClasspath’.
Could not find :no.locus.patient:patient-model.
Required by:
project :service
I have set up build.gradle with :
repositories {
…
maven {
url “http://localhost:8090/releases”
allowInsecureProtocol = true
}
…
}
and the artifact is specified as:
:no.locus.patient:patient-model:6.0.2
I am using reposilite as the local repository, so I am trying to figure out if gradle have tried contacting the repository and in that case what it has asked for, specifically.
I might have misconfigured reposilite, uploaded the artifact wrongly or misconfigured build.gradle, so I just have to start at the most logical place, what is gradle asking for and which server is it talking with.
I have tried --info and --debug, but I cant find any mention of it trying to download the artifact, even though other artifacts are downloaded from public replositories.
I have deleted .ivy2 .m2 and .gradle/caches, to force it to download from the local repo, but to no avail.
Currently I am thinking there is something wrong with the build.gradle definition, but I am using the config snippet provided by reposilite for my repo, so it should be correct, I think.
Again, any help would be greatly appreciated.
Thomas