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')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile project(':test-utils')
|
|
|
|
|
|
|
|
// Integration test helpers
|
2017-12-18 17:09:24 +00:00
|
|
|
testCompile "org.assertj:assertj-core:$assertj_version"
|
2019-05-20 10:57:56 +00:00
|
|
|
integrationTestImplementation "junit:junit:$junit_version"
|
2019-05-15 15:40:12 +00:00
|
|
|
integrationTestImplementation "org.junit.jupiter:junit-jupiter-api:${junit_jupiter_version}"
|
|
|
|
|
2019-05-20 10:57:56 +00:00
|
|
|
integrationTestRuntimeOnly "org.junit.vintage:junit-vintage-engine:${junit_vintage_version}"
|
2019-05-15 15:40:12 +00:00
|
|
|
integrationTestRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junit_jupiter_version}"
|
|
|
|
integrationTestRuntimeOnly "org.junit.platform:junit-platform-launcher:${junit_platform_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}"
|
2019-06-13 09:15:13 +00:00
|
|
|
compile "javax.servlet:javax.servlet-api:${servlet_version}"
|
2017-11-28 13:58:48 +00:00
|
|
|
|
2019-02-22 18:26:40 +00:00
|
|
|
compile "org.gradle:gradle-tooling-api:${gradle.gradleVersion}"
|
2019-02-22 16:48:28 +00:00
|
|
|
|
2017-11-28 13:58:48 +00:00
|
|
|
// 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
|
|
|
}
|
|
|
|
|
2019-09-20 14:10:15 +00:00
|
|
|
compileJava {
|
|
|
|
doFirst {
|
|
|
|
if (JavaVersion.current() == JavaVersion.VERSION_11)
|
|
|
|
options.compilerArgs = [
|
|
|
|
'--add-exports', 'java.base/sun.nio.ch=ALL-UNNAMED'
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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'
|
2020-03-05 17:39:55 +00:00
|
|
|
manifest {
|
|
|
|
// This JAR is part of Corda's testing framework.
|
|
|
|
// Driver will not include it as part of an out-of-process node.
|
|
|
|
attributes('Corda-Testing': true)
|
|
|
|
}
|
2017-09-05 08:50:51 +00:00
|
|
|
}
|
|
|
|
|
2020-07-02 15:17:34 +00:00
|
|
|
|
|
|
|
tasks.named('javadocJar', Jar) {
|
|
|
|
from 'README.md'
|
|
|
|
include 'README.md'
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.named('javadoc', Javadoc) {
|
|
|
|
enabled = false
|
|
|
|
}
|
|
|
|
|
2017-09-05 08:50:51 +00:00
|
|
|
publish {
|
|
|
|
name jar.baseName
|
|
|
|
}
|
2019-01-17 10:03:46 +00:00
|
|
|
|
|
|
|
scanApi {
|
|
|
|
//Constructors that are synthesized by Kotlin unexpectedly
|
|
|
|
excludeMethods = [
|
|
|
|
"net.corda.testing.node.MockServices": [
|
|
|
|
"<init>(Lnet/corda/node/cordapp/CordappLoader;Lnet/corda/core/node/services/IdentityService;Lnet/corda/core/node/NetworkParameters;Lnet/corda/testing/core/TestIdentity;[Ljava/security/KeyPair;Lkotlin/jvm/internal/DefaultConstructorMarker;)V"
|
|
|
|
],
|
|
|
|
"net.corda.testing.node.InMemoryMessagingNetwork\$MessageTransfer": [
|
|
|
|
"<init>(Lnet/corda/testing/node/InMemoryMessagingNetwork\$PeerHandle;Lnet/corda/node/services/messaging/Message;Lnet/corda/core/messaging/MessageRecipients;Lkotlin/jvm/internal/DefaultConstructorMarker;)V"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}
|