ソースを参照

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