소스 검색

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