mirror of
https://github.com/corda/corda.git
synced 2024-12-19 21:17:58 +00:00
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.
This commit is contained in:
parent
8f0a6cb89c
commit
0a38ff084e
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user