3

As per the documentation http://gradle.org/docs/current/dsl/org.gradle.api.artifacts.dsl.DependencyHandler.html

A string dependency notation looks like "group:name:version:classifier@extension" How do we specify the type (http://ant.apache.org/ivy/history/latest-milestone/terminology.html#type) here?

M. Justin
  • 14,487
  • 7
  • 91
  • 130
RD.
  • 300
  • 4
  • 12
  • To clarify, I cannot use gradle's map notation here. – RD. Feb 25 '15 at 09:36
  • Possible duplicate of [How to specify a classifier in a gradle dependency's dependency?](http://stackoverflow.com/questions/13188438/how-to-specify-a-classifier-in-a-gradle-dependencys-dependency) – allprog Aug 22 '16 at 11:12

1 Answers1

0

You can declare like below:

artifacts {
  archives file: '', name: '', type: 'jar'
}

and for more information here.

Opal
  • 81,889
  • 28
  • 189
  • 210
GAgarwal
  • 122
  • 4
  • Thanks GAgarwal, but I'm limited here and cannot use the Map notation – RD. Feb 25 '15 at 09:35
  • Please check the below link not to use map notation:http://gradle.org/docs/current/dsl/org.gradle.api.artifacts.query.ArtifactResolutionQuery.html – GAgarwal Feb 25 '15 at 09:56