Fix Gradle to use flattened POM file

Update the Gradle plugin to use version information from the
flattened POM.xml files.

See gh-9316
This commit is contained in:
Phillip Webb
2017-05-31 13:53:37 -07:00
parent b87f9c11f1
commit c6f930b49e
2 changed files with 4 additions and 26 deletions

View File

@@ -196,7 +196,7 @@ public class GradleBuild implements TestRule {
XPathFactory xPathFactory = XPathFactory.newInstance();
XPath xpath = xPathFactory.newXPath();
XPathExpression expr = xpath.compile(expression);
String version = expr.evaluate(new InputSource(new FileReader("pom.xml")));
String version = expr.evaluate(new InputSource(new FileReader(".flattened-pom.xml")));
return version;
}
catch (Exception ex) {