diff --git a/build.gradle b/build.gradle index 1850c8ff6f..29dc5d0533 100644 --- a/build.gradle +++ b/build.gradle @@ -233,6 +233,7 @@ allprojects { jcenter() maven { url "$artifactory_contextUrl/corda-dependencies" } maven { url 'https://jitpack.io' } + maven { url 'https://repo.gradle.org/gradle/libs-releases' } } configurations { diff --git a/testing/node-driver/build.gradle b/testing/node-driver/build.gradle index 01de45b827..d85baabac1 100644 --- a/testing/node-driver/build.gradle +++ b/testing/node-driver/build.gradle @@ -37,6 +37,8 @@ dependencies { compile "org.eclipse.jetty:jetty-webapp:${jetty_version}" compile "javax.servlet:javax.servlet-api:3.1.0" + compile "org.gradle:gradle-tooling-api:4.10.1" + // Jersey for JAX-RS implementation for use in Jetty compile "org.glassfish.jersey.core:jersey-server:${jersey_version}" compile "org.glassfish.jersey.containers:jersey-container-servlet-core:${jersey_version}" diff --git a/testing/node-driver/src/main/kotlin/net/corda/testing/node/internal/TestCordappImpl.kt b/testing/node-driver/src/main/kotlin/net/corda/testing/node/internal/TestCordappImpl.kt index 0190bb2bf4..2c4dd6cda5 100644 --- a/testing/node-driver/src/main/kotlin/net/corda/testing/node/internal/TestCordappImpl.kt +++ b/testing/node-driver/src/main/kotlin/net/corda/testing/node/internal/TestCordappImpl.kt @@ -4,7 +4,8 @@ import io.github.classgraph.ClassGraph import net.corda.core.internal.* import net.corda.core.utilities.contextLogger import net.corda.testing.node.TestCordapp -import org.apache.commons.lang.SystemUtils +import org.gradle.tooling.GradleConnector +import org.gradle.tooling.ProgressEvent import java.nio.file.Path import java.util.* import java.util.concurrent.ConcurrentHashMap @@ -77,24 +78,31 @@ data class TestCordappImpl(val scanPackage: String, override val config: Map + log.info(event.description) + } + } + // Blocks until the build is complete + build.run() + projectConnection.close() } } }