gradle-在分发中打开拉链
我的gradle build正在为我创建一个发行版:gradle-在分发中打开拉链,gradle,Gradle,我的gradle build正在为我创建一个发行版: apply plugin: 'distribution' distributions { main { contents { from ('src/resources/test.zip') // other stuff } } } 这是test.zip和我创建的发行版中所有其他内容的结果。我的问题是如何将test.zip解包到新发行版中?使用z
apply plugin: 'distribution'
distributions {
main {
contents {
from ('src/resources/test.zip')
// other stuff
}
}
}
这是test.zip和我创建的发行版中所有其他内容的结果。我的问题是如何将test.zip解包到新发行版中?使用zipTree获取zip文件的内容:
contents {
from (zipTree('src/resources/test.zip'))
// other stuff
}