I have a gradle project with this setup:
configurations {
app
}
dependencies {
app "com.test:APPSERVER:${version}"
app "com.test:APPLICATION1:${version1}"
app "com.test:APPLICATION2:${version2}"
app(group:'com.test', name:myProject, version:master) {
transitive = false
}
app(group: 'com.test.aaa', name:'app-proxy', version:master) {
transitive = false
}
}
when I do something like this:
configurations.app.collect {
println "path: $it"
}
the outputs for all dependencies except “myProject” are like:
/Users/myuser/.m2/repository/com/test/APPLICATION1/0-39/APPLICATION1-0-39.jar
or
/Users/myuser/.gradle/caches/modules-2/files-2.1/com.test/APPSERVER/0-33/ecf0b32ac7199d5b228bc69d7a94bf977d772242/APPSERVER-0-33.jar
but the myProject is always in a path related to the project sources:
/Users/myuser/Documents/workspaces/git/app/build/libs/app-master.jar
so this last jar does not exist and I get obviously this error:
The specified zip file ZIP '/Users/myuser/Documents/workspaces/git/app/build/libs/app-master.jar' does not exist and will be silently ignored.
any idea why myProject’s jar is not searched into the cache path contained into .gradle/cache or .m2/cache as the others?
I did not set any environment variable.
Thanks.