mirror of
https://github.com/corda/corda.git
synced 2024-12-23 14:52:29 +00:00
9ebeac1ad8
* Move Raft and BFT notaries into separate modules * Move schemas * Fix tests & demos * Modified logic for creating notary services: Added a new field 'className' to the notary configuration. The node now loads the specified implementation via reflection. The default className value points to the simple notary implementation for backwards compatibility. Relevant schemas are loaded in a similar fashion. For backwards compatibility purposes the default SimpleNotaryService will remain built-in to node, but its cordapp will be generated on startup – so the loading of notary services is streamlined. * Move test namedcache factory to test utils
60 lines
1.8 KiB
Groovy
60 lines
1.8 KiB
Groovy
apply plugin: 'kotlin'
|
|
apply plugin: 'kotlin-jpa'
|
|
apply plugin: 'net.corda.plugins.quasar-utils'
|
|
apply plugin: 'net.corda.plugins.publish-utils'
|
|
apply plugin: 'net.corda.plugins.api-scanner'
|
|
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 {
|
|
// Bundling in the Raft notary service for tests involving distributed notaries
|
|
compile project(':experimental:notary-raft')
|
|
compile project(':test-utils')
|
|
|
|
// Integration test helpers
|
|
testCompile "org.assertj:assertj-core:$assertj_version"
|
|
integrationTestCompile "junit:junit:$junit_version"
|
|
|
|
// 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}"
|
|
}
|
|
|
|
task integrationTest(type: Test) {
|
|
testClassesDirs = sourceSets.integrationTest.output.classesDirs
|
|
classpath = sourceSets.integrationTest.runtimeClasspath
|
|
}
|
|
|
|
jar {
|
|
baseName 'corda-node-driver'
|
|
}
|
|
|
|
publish {
|
|
name jar.baseName
|
|
}
|