I have project A. It published artifact
group: "com.me", name: "a", version: "0.0.1", classifier: "distribution", ext: "tar.gz"
to artifactory.
I try to include “a” dependency to project A
dependencies{
// other deps
compile "com.me", name: "a", version: "0.0.1", classifier: "distribution", ext: "tar.gz"
}
Gradle can’t resolve this dependency:
Could not find a.distribution.tar.gz (com.me:a:0.0.1).
-
Why Could not find a.distribution.tar.gz
where is the version in file name? -
Works fine if I remove classifier and extension. Gradle is able to fetch published jar and dependencies
dependencies{
// other deps
compile "com.me", name: "a", version: "0.0.1"
}
- I have project B
I include there
compile "com.me", name: "a", version: "0.0.1", classifier: "distribution", ext: "tar.gz"
Works fine.
Gradle 2.13
Build time: 2016-04-25 04:10:10 UTC
Build number: none
Revision: 3b427b1481e46232107303c90be7b05079b05b1c
Groovy: 2.4.4
Ant: Apache Ant™ version 1.9.6 compiled on June 29 2015
JVM: 1.8.0_66 (Oracle Corporation 25.66-b17)
OS: Mac OS X 10.11.6 x86_64