Skip to content

Commit aa86793

Browse files
authored
Fix generating docker exports by triggering assemble (#133475)
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.
1 parent 4084d1e commit aa86793

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

distribution/docker/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,11 @@ subprojects { Project subProject ->
668668
dependsOn compressExportTask
669669
}
670670

671+
tasks.named('assemble').configure {
672+
dependsOn exportTask
673+
}
674+
675+
// deprecated here for backwards compatibility of DistroTestPlugin and DistributionDownloadPlugin
671676
artifacts.add('default', file(tarFile)) {
672677
type = 'tar'
673678
name = artifactName

0 commit comments

Comments
 (0)