diff --git a/buildSrc/src/main/java/org/elasticsearch/gradle/internal/InternalDistributionBwcSetupPlugin.java b/buildSrc/src/main/java/org/elasticsearch/gradle/internal/InternalDistributionBwcSetupPlugin.java index a6080685673..1872a69f8a0 100644 --- a/buildSrc/src/main/java/org/elasticsearch/gradle/internal/InternalDistributionBwcSetupPlugin.java +++ b/buildSrc/src/main/java/org/elasticsearch/gradle/internal/InternalDistributionBwcSetupPlugin.java @@ -151,11 +151,13 @@ public class InternalDistributionBwcSetupPlugin implements Plugin { private static List resolveArchiveProjects(File checkoutDir, Version bwcVersion) { List projects = new ArrayList<>(); - projects.addAll(asList("deb", "rpm")); - if (bwcVersion.onOrAfter("7.0.0")) { + // All active BWC branches publish default and oss variants of rpm and deb packages + projects.addAll(asList("deb", "rpm", "oss-deb", "oss-rpm")); + + if (bwcVersion.onOrAfter("7.0.0")) { // starting with 7.0 we bundle a jdk which means we have platform-specific archives projects.addAll(asList("oss-windows-zip", "windows-zip", "oss-darwin-tar", "darwin-tar", "oss-linux-tar", "linux-tar")); - } else { - projects.addAll(asList("oss-zip", "zip", "oss-deb", "oss-rpm")); + } else { // prior to 7.0 we published only a single zip and tar archives for oss and default distributions + projects.addAll(asList("oss-zip", "zip", "tar", "oss-tar")); } return projects.stream().map(name -> {