mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-19 04:45:07 -04:00
Resolve bwc dependencies for packer cache (#125625)
This commit is contained in:
parent
16441fe3b3
commit
4de4ec1d4c
2 changed files with 19 additions and 1 deletions
12
build.gradle
12
build.gradle
|
@ -295,7 +295,16 @@ allprojects {
|
||||||
tasks.register('resolveAllDependencies', ResolveAllDependencies) {
|
tasks.register('resolveAllDependencies', ResolveAllDependencies) {
|
||||||
def ignoredPrefixes = [DistributionDownloadPlugin.ES_DISTRO_CONFIG_PREFIX, "jdbcDriver"]
|
def ignoredPrefixes = [DistributionDownloadPlugin.ES_DISTRO_CONFIG_PREFIX, "jdbcDriver"]
|
||||||
configs = project.configurations.matching { config -> ignoredPrefixes.any { config.name.startsWith(it) } == false }
|
configs = project.configurations.matching { config -> ignoredPrefixes.any { config.name.startsWith(it) } == false }
|
||||||
resolveJavaToolChain = true
|
if(project.path == ':') {
|
||||||
|
resolveJavaToolChain = true
|
||||||
|
|
||||||
|
// ensure we have best possible caching of bwc builds
|
||||||
|
dependsOn ":distribution:bwc:bugfix:buildBwcLinuxTar"
|
||||||
|
dependsOn ":distribution:bwc:bugfix2:buildBwcLinuxTar"
|
||||||
|
dependsOn ":distribution:bwc:minor:buildBwcLinuxTar"
|
||||||
|
dependsOn ":distribution:bwc:staged:buildBwcLinuxTar"
|
||||||
|
dependsOn ":distribution:bwc:staged2:buildBwcLinuxTar"
|
||||||
|
}
|
||||||
if (project.path.contains("fixture")) {
|
if (project.path.contains("fixture")) {
|
||||||
dependsOn tasks.withType(ComposePull)
|
dependsOn tasks.withType(ComposePull)
|
||||||
}
|
}
|
||||||
|
@ -306,6 +315,7 @@ allprojects {
|
||||||
// ensure we resolve p2 dependencies for the spotless eclipse formatter
|
// ensure we resolve p2 dependencies for the spotless eclipse formatter
|
||||||
dependsOn "spotlessJavaCheck"
|
dependsOn "spotlessJavaCheck"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ext.withReleaseBuild = { Closure config ->
|
ext.withReleaseBuild = { Closure config ->
|
||||||
|
|
|
@ -19,6 +19,14 @@ public final class MinioTestContainer extends DockerEnvironmentAwareTestContaine
|
||||||
public static final String DOCKER_BASE_IMAGE = "minio/minio:RELEASE.2024-12-18T13-15-44Z";
|
public static final String DOCKER_BASE_IMAGE = "minio/minio:RELEASE.2024-12-18T13-15-44Z";
|
||||||
private final boolean enabled;
|
private final boolean enabled;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* for packer caching only
|
||||||
|
* see CacheCacheableTestFixtures.
|
||||||
|
* */
|
||||||
|
protected MinioTestContainer() {
|
||||||
|
this(true, "minio", "minio123", "test-bucket");
|
||||||
|
}
|
||||||
|
|
||||||
public MinioTestContainer(boolean enabled, String accessKey, String secretKey, String bucketName) {
|
public MinioTestContainer(boolean enabled, String accessKey, String secretKey, String bucketName) {
|
||||||
super(
|
super(
|
||||||
new ImageFromDockerfile("es-minio-testfixture").withDockerfileFromBuilder(
|
new ImageFromDockerfile("es-minio-testfixture").withDockerfileFromBuilder(
|
||||||
|
|
Loading…
Add table
Reference in a new issue