Is there a shorthand syntax for ext in gradle files?

Viewed 145

Consider the following line in a dependencies gradle file:

compile group: 'com.sun.xml.ws', name: 'jaxws-rt', version: '2.2.10', ext: 'pom'

I would like to translate it into the following shorthand instead:

compile 'com.sun.xml.ws:jaxws-rt:2.2.10'   ext: 'pom'

However, this does not work because of the ext section.

What is the correct syntax to add that part in the shorthand?

1 Answers

Use this:

compile com.sun.xml.ws:jaxws-rt:2.2.10@pom

See the related section of the Users Guide.

Good luck!

Related