Я создаю пакет tar.gz. Я использую задание distTar из Gradle. Я не знаю, как переопределить папку bin по умолчанию. Кто-нибудь знает?
Ниже моя задача.
plugins.withType(DistributionPlugin) {
distTar() {
applicationDistribution.from("cfg") {
into "cfg"
}
applicationDistribution.from("bin") {
into "bin"
}
eachFile { file ->
String path = file.relativePath
file.setPath(path.substring(path.indexOf("/") + 1, path.length()))
}
includeEmptyDirs = false
compression = Compression.GZIP
extension = 'tar.gz'
}
}