gradle 文件中的 ext 是否有 shorthand 语法?
Is there a shorthand syntax for ext in gradle files?
考虑依赖项 gradle 文件中的以下行:
compile group: 'com.sun.xml.ws', name: 'jaxws-rt', version: '2.2.10', ext: 'pom'
我想把它翻译成下面的shorthand:
compile 'com.sun.xml.ws:jaxws-rt:2.2.10' ext: 'pom'
但是,由于 ext
部分,这不起作用。
在 shorthand 中添加该部分的正确语法是什么?
使用这个:
compile com.sun.xml.ws:jaxws-rt:2.2.10@pom
请参阅用户指南的 related section。
祝你好运!
考虑依赖项 gradle 文件中的以下行:
compile group: 'com.sun.xml.ws', name: 'jaxws-rt', version: '2.2.10', ext: 'pom'
我想把它翻译成下面的shorthand:
compile 'com.sun.xml.ws:jaxws-rt:2.2.10' ext: 'pom'
但是,由于 ext
部分,这不起作用。
在 shorthand 中添加该部分的正确语法是什么?
使用这个:
compile com.sun.xml.ws:jaxws-rt:2.2.10@pom
请参阅用户指南的 related section。
祝你好运!