我已经有以下内容:
task packageTests(type: Jar) {
from sourceSets.test.output
}
distZip {
into(jarFolderName) {
from '.'
include 'conf/**'
}
into(jarFolderName) {
from '.'
include 'bin/**'
fileMode = 0755
}
into(jarFolderName) {
from 'build'
include 'logs'
}
}
添加一个dependOn将创建测试jar,但我怎样才能将它包含在分发zip文件中?