I am using gradle 4.10.2
and am trying to specify artifacts like this:
dependencies {
// Groovy
compile group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.4.15', classifier: 'indy'
...
gradle is ignoring the classifier.
Is there a way to do this? I have seen quite a few discussions on this issue but can not find a resolution.
thanks
Chris_Dore
(Chris Doré)
October 22, 2018, 4:43am
2
If you are looking at the output of the dependencies
task, classifiers are not displayed in that report.
However, if you look at the actual files being used, you should see indy
. My test:
apply plugin: 'groovy'
repositories {
jcenter()
}
dependencies {
compile group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.4.15', classifier: 'indy'
}
task showFiles {
doLast {
println configurations.compile.join('\n')
}
}
$ gradle showFiles
> Task :showFiles
C:\Users\Chris Dore\.gradle\caches\...\groovy-all-2.4.15-indy.jar
Excellent, many thanks. It did not occur to me that the dependency report was being economical with the truth.