Skip to content

Commit

Permalink
Fix :qa Task Using Broken BwC Versions Resolution (elastic#56332)
Browse files Browse the repository at this point in the history
I think we missed this spot in elastic#56206 breaking the task and thus Gradle imports into Idea.
  • Loading branch information
original-brownbear authored May 7, 2020
1 parent 923fc98 commit 7e7f754
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,7 @@ private static TaskProvider<Copy> configureCopyUpgradeTask(Project project, Vers
Path upgradePath = upgradeDir.get().getAsFile().toPath();

// write bwc version, and append -SNAPSHOT if it is an unreleased version
ExtraPropertiesExtension extraProperties = project.getExtensions().getByType(ExtraPropertiesExtension.class);
BwcVersions bwcVersions = (BwcVersions) extraProperties.get("bwcVersions");
BwcVersions bwcVersions = BuildParams.getBwcVersions();
final String upgradeFromVersion;
if (bwcVersions.unreleasedInfo(upgradeVersion) != null) {
upgradeFromVersion = upgradeVersion.toString() + "-SNAPSHOT";
Expand Down

0 comments on commit 7e7f754

Please sign in to comment.