apply plugin: 'base' task buildOssDockerBuildContext(type: Tar) { extension = 'tar.gz' compression = Compression.GZIP archiveClassifier = "docker-build-context" archiveBaseName = "elasticsearch-oss" with dockerBuildContext("x64", true, false) } assemble.dependsOn buildOssDockerBuildContext