2018-03-06 17:29:21 +00:00
|
|
|
/*
|
|
|
|
* R3 Proprietary and Confidential
|
|
|
|
*
|
|
|
|
* Copyright (c) 2018 R3 Limited. All rights reserved.
|
|
|
|
*
|
|
|
|
* The intellectual and technical concepts contained herein are proprietary to R3 and its suppliers and are protected by trade secret law.
|
|
|
|
*
|
|
|
|
* Distribution of this file or any portion thereof via any medium without the express permission of R3 is strictly prohibited.
|
|
|
|
*/
|
|
|
|
|
2017-09-05 08:50:51 +00:00
|
|
|
apply plugin: 'kotlin'
|
|
|
|
apply plugin: 'kotlin-jpa'
|
|
|
|
apply plugin: 'net.corda.plugins.quasar-utils'
|
|
|
|
apply plugin: 'net.corda.plugins.publish-utils'
|
2018-01-04 10:09:04 +00:00
|
|
|
apply plugin: 'net.corda.plugins.api-scanner'
|
2017-09-05 08:50:51 +00:00
|
|
|
apply plugin: 'com.jfrog.artifactory'
|
|
|
|
|
|
|
|
//noinspection GroovyAssignabilityCheck
|
|
|
|
configurations {
|
|
|
|
integrationTestCompile.extendsFrom testCompile
|
|
|
|
integrationTestRuntime.extendsFrom testRuntime
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
integrationTest {
|
|
|
|
kotlin {
|
|
|
|
compileClasspath += main.output + test.output
|
|
|
|
runtimeClasspath += main.output + test.output
|
|
|
|
srcDir file('src/integration-test/kotlin')
|
|
|
|
}
|
|
|
|
resources {
|
|
|
|
srcDir file('src/integration-test/resources')
|
2017-12-01 17:17:51 +00:00
|
|
|
srcDir file('../testing/test-utils/src/main/resources')
|
2017-09-05 08:50:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile project(':test-utils')
|
2017-09-12 18:18:09 +00:00
|
|
|
compile "net.corda.plugins:cordform-common:$gradle_plugins_version"
|
2017-09-05 08:50:51 +00:00
|
|
|
|
|
|
|
// Integration test helpers
|
2017-12-18 17:09:24 +00:00
|
|
|
testCompile "org.assertj:assertj-core:$assertj_version"
|
2017-09-05 08:50:51 +00:00
|
|
|
integrationTestCompile "junit:junit:$junit_version"
|
2017-11-28 13:58:48 +00:00
|
|
|
|
|
|
|
// Jetty dependencies for NetworkMapClient test.
|
|
|
|
// Web stuff: for HTTP[S] servlets
|
|
|
|
compile "org.eclipse.jetty:jetty-servlet:${jetty_version}"
|
|
|
|
compile "org.eclipse.jetty:jetty-webapp:${jetty_version}"
|
|
|
|
compile "javax.servlet:javax.servlet-api:3.1.0"
|
|
|
|
|
|
|
|
// 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}"
|
|
|
|
compile "org.glassfish.jersey.containers:jersey-container-jetty-http:${jersey_version}"
|
2017-09-05 08:50:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
task integrationTest(type: Test) {
|
|
|
|
testClassesDirs = sourceSets.integrationTest.output.classesDirs
|
|
|
|
classpath = sourceSets.integrationTest.runtimeClasspath
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
baseName 'corda-node-driver'
|
|
|
|
}
|
|
|
|
|
|
|
|
publish {
|
|
|
|
name jar.baseName
|
|
|
|
}
|