Fixed the resolution of the corda_version variable.

This commit is contained in:
Clinton Alexander 2016-11-17 15:56:10 +00:00
parent 0a6cdb77c3
commit 34d1e1583e

View File

@ -209,7 +209,7 @@ class Node {
* @return A file representing the Corda JAR. * @return A file representing the Corda JAR.
*/ */
private File verifyAndGetCordaJar() { private File verifyAndGetCordaJar() {
def maybeCordaJAR = project.configurations.runtime.filter { it.toString().contains("corda-${project.corda_version}.jar")} def maybeCordaJAR = project.configurations.runtime.filter { it.toString().contains("corda-${project.rootProject.corda_version}.jar")}
if(maybeCordaJAR.size() == 0) { if(maybeCordaJAR.size() == 0) {
throw new RuntimeException("No Corda Capsule JAR found. Have you deployed the Corda project to Maven? Looked for \"corda-${project.corda_version}.jar\"") throw new RuntimeException("No Corda Capsule JAR found. Have you deployed the Corda project to Maven? Looked for \"corda-${project.corda_version}.jar\"")
} else { } else {