From 7e7f75476d93590c75dd2d76f141930f87012358 Mon Sep 17 00:00:00 2001 From: Armin Braun Date: Thu, 7 May 2020 14:22:15 +0200 Subject: [PATCH] Fix :qa Task Using Broken BwC Versions Resolution (#56332) I think we missed this spot in #56206 breaking the task and thus Gradle imports into Idea. --- .../java/org/elasticsearch/gradle/test/DistroTestPlugin.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/buildSrc/src/main/java/org/elasticsearch/gradle/test/DistroTestPlugin.java b/buildSrc/src/main/java/org/elasticsearch/gradle/test/DistroTestPlugin.java index c252aab79f1bc..327f005c33157 100644 --- a/buildSrc/src/main/java/org/elasticsearch/gradle/test/DistroTestPlugin.java +++ b/buildSrc/src/main/java/org/elasticsearch/gradle/test/DistroTestPlugin.java @@ -291,8 +291,7 @@ private static TaskProvider 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";