且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

“与”的含义是什么?在gradle中

更新时间:2022-04-29 04:44:04

在你的情况下,你用()方法调用 - Jar 课。 (请参阅 Jar DSL文档 Jar API文档

In your case you are calling the with()-method of the Jar class. (see the very bottom of the Jar DSL documentation and the Jar API documentation)


将给定的规格添加为本规范的子代。

Adds the given specs as a child of this spec.

所以, with() - Groovy的方法。

So, it's not the with()-method of Groovy.