Skip to content

Commit 80e78e9

Browse files
committed
Declare empty package dirs as output dirs
Otherwise newer versions of Gradle will see the outputs as stale and remove the directory between having created the directory and copying files into the directory (leading to the directory being created again, this time missing some sub-directories).
1 parent 1c2fc09 commit 80e78e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

distribution/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,14 @@ configure(distributions.findAll { ['deb', 'rpm'].contains(it.name) }) {
324324
task createEtc(type: EmptyDirTask) {
325325
dir "${packagingFiles}/etc/elasticsearch"
326326
dirMode 0750
327+
outputs.dir dir
327328
}
328329

329330
task createEtcScripts(type: EmptyDirTask) {
330331
dependsOn createEtc
331332
dir "${packagingFiles}/etc/elasticsearch/scripts"
332333
dirMode 0750
334+
outputs.dir dir
333335
}
334336

335337
task fillEtc(type: Copy) {

0 commit comments

Comments
 (0)