From 0a38ff084e58d20eae5abcd6d4e61fa4d290b87d Mon Sep 17 00:00:00 2001 From: Stefan Iliev <46542846+StefanIliev545@users.noreply.github.com> Date: Mon, 29 Apr 2019 17:12:18 +0100 Subject: [PATCH] CORDA-2884 - Docker build tasks will pull the corda jar from artifactory. (#5067) * Changed corda jar to be pulled from artifactory. * Changes according to PR review. --- docker/build.gradle | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/docker/build.gradle b/docker/build.gradle index 2891b251ab..886eeae381 100644 --- a/docker/build.gradle +++ b/docker/build.gradle @@ -16,9 +16,22 @@ apply plugin: 'application' mainClassName = 'net.corda.core.ConfigExporterMain' apply plugin: 'com.github.johnrengelman.shadow' +repositories { + maven { + url "${artifactory_contextUrl}/corda-releases" + } + maven { + url "${artifactory_contextUrl}/corda-dev" + } +} + +configurations { + artifactoryCorda +} dependencies{ compile project(':node') + artifactoryCorda "net.corda:corda:${project.version}" } shadowJar { @@ -38,11 +51,11 @@ docker{ task buildDockerFolder(dependsOn: [":node:capsule:buildCordaJAR", shadowJar]) { doLast { - def cordaJar = project(":node:capsule").buildCordaJAR.archivePath + def cordaJar = configurations.artifactoryCorda.singleFile project.copy { into new File(project.buildDir, "docker-temp") from "src/bash/run-corda.sh" - from cordaJar + from cordaJar.path from shadowJar.archivePath from "src/config/starting-node.conf" from "src/bash/generate-config.sh"