From f432928069958e1470b4572a74bbdb6300d778f8 Mon Sep 17 00:00:00 2001 From: Paulo Santos Date: Thu, 29 Jun 2017 14:42:05 -0400 Subject: [PATCH] Use the hub project name with the deployment of the bdio The createHubOutput method uses the hub project name property but the deployHubOutput method does not use that property to find the file. Therefore it would fail to deploy the bdio files. --- .../blackducksoftware/integration/gradle/task/BuildBomTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/blackducksoftware/integration/gradle/task/BuildBomTask.java b/src/main/java/com/blackducksoftware/integration/gradle/task/BuildBomTask.java index 8e1f916..e10e18e 100644 --- a/src/main/java/com/blackducksoftware/integration/gradle/task/BuildBomTask.java +++ b/src/main/java/com/blackducksoftware/integration/gradle/task/BuildBomTask.java @@ -238,7 +238,7 @@ private void deployHubBDIO() throws GradleException { try { buildToolHelper.deployHubOutput(getHubServicesFactory(), getProject().file(getOutputDirectory()), - getProject().getName()); + getHubProjectName()); } catch (IntegrationException | IllegalArgumentException e) { throw new GradleException(String.format(DEPLOY_HUB_OUTPUT_ERROR, e.getMessage()), e); }