diff --git a/buildSrc/src/main/java/org/elasticsearch/gradle/DistributionDownloadPlugin.java b/buildSrc/src/main/java/org/elasticsearch/gradle/DistributionDownloadPlugin.java index 09445b296ac..3bf7b5d67c7 100644 --- a/buildSrc/src/main/java/org/elasticsearch/gradle/DistributionDownloadPlugin.java +++ b/buildSrc/src/main/java/org/elasticsearch/gradle/DistributionDownloadPlugin.java @@ -227,7 +227,13 @@ public class DistributionDownloadPlugin implements Plugin { classifier = ""; } } else if (distribution.getType() == Type.DEB) { - classifier = ":amd64"; + if (distroVersion.onOrAfter("7.0.0")) { + classifier = ":amd64"; + } else { + classifier = ""; + } + } else if (distribution.getType() == Type.RPM && distroVersion.before("7.0.0")) { + classifier = ""; } String flavor = ""; if (distribution.getFlavor() == Flavor.OSS && distroVersion.onOrAfter("6.3.0")) {