瀏覽代碼

Fix generating docker exports by triggering assemble (#133475) (#133484)

The kibana team relies on using
`:distribution:docker:docker-export:assemble` which has been broken
after the gradle 9.0 update due to the (by now known) change in
behaviour of not tying default artifacts to the assemble task anymore.

The recommended fix is, setting this up explicitly.
Rene Groeschke 1 月之前
父節點
當前提交
1fde05a4d6
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      distribution/docker/build.gradle

+ 5 - 0
distribution/docker/build.gradle

@@ -651,6 +651,11 @@ subprojects { Project subProject ->
       dependsOn compressExportTask
     }
 
+    tasks.named('assemble').configure {
+      dependsOn exportTask
+    }
+
+    // deprecated here for backwards compatibility of DistroTestPlugin and DistributionDownloadPlugin
     artifacts.add('default', file(tarFile)) {
       type = 'tar'
       name = artifactName