【发布时间】:2016-03-09 10:21:48
【问题描述】:
在答案https://stackoverflow.com/a/35879150 的最后一行有一个with:
task gen (type: Jar) {
description "Generates JAR without version number."
archiveName = filename + ".jar"
manifest {attributes 'Main-Class': mainFile}
with jar
}
确切的含义是什么,它记录在哪里?我在 gradle 文档中找不到它,而 groovy (http://groovy-lang.org/style-guide.html#_using_with_for_repeated_operations_on_the_same_bean) 中的 with 似乎有所不同。
【问题讨论】:
标签: gradle groovy build.gradle