Browse Source

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 month ago
parent
commit
1fde05a4d6
1 changed files with 5 additions and 0 deletions
  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