Răsfoiți Sursa

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 lună în urmă
părinte
comite
1fde05a4d6
1 a modificat fișierele cu 5 adăugiri și 0 ștergeri
  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