mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-09 06:25:07 +00:00
- Replace immediate task creations by using task avoidance api - One step closer to #56610 - Still many tasks are created during configuration phase. Tackled in separate steps
14 lines
449 B
Groovy
14 lines
449 B
Groovy
apply plugin: 'base'
|
|
|
|
tasks.register("buildDockerBuildContext", Tar) {
|
|
archiveExtension = 'tar.gz'
|
|
compression = Compression.GZIP
|
|
archiveClassifier = "docker-build-context"
|
|
archiveBaseName = "elasticsearch"
|
|
// Non-local builds don't need to specify an architecture.
|
|
// Make this explicit via the string value.
|
|
with dockerBuildContext("<remote>", false, false)
|
|
}
|
|
|
|
tasks.named("assemble").configure {dependsOn "buildDockerBuildContext"}
|