Fix BWC distribution resolution errors (#64310)
(cherry picked from commit e6ffe9e7b73f7f4dd28ec1059bb9651a98d8f5f5)
This commit is contained in:
parent
e7f2beae05
commit
13fb6dbe4b
|
@ -151,11 +151,13 @@ public class InternalDistributionBwcSetupPlugin implements Plugin<Project> {
|
||||||
|
|
||||||
private static List<DistributionProject> resolveArchiveProjects(File checkoutDir, Version bwcVersion) {
|
private static List<DistributionProject> resolveArchiveProjects(File checkoutDir, Version bwcVersion) {
|
||||||
List<String> projects = new ArrayList<>();
|
List<String> projects = new ArrayList<>();
|
||||||
projects.addAll(asList("deb", "rpm"));
|
// All active BWC branches publish default and oss variants of rpm and deb packages
|
||||||
if (bwcVersion.onOrAfter("7.0.0")) {
|
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"));
|
projects.addAll(asList("oss-windows-zip", "windows-zip", "oss-darwin-tar", "darwin-tar", "oss-linux-tar", "linux-tar"));
|
||||||
} else {
|
} 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", "oss-deb", "oss-rpm"));
|
projects.addAll(asList("oss-zip", "zip", "tar", "oss-tar"));
|
||||||
}
|
}
|
||||||
|
|
||||||
return projects.stream().map(name -> {
|
return projects.stream().map(name -> {
|
||||||
|
|
Loading…
Reference in New Issue