2017-01-30 13:51:00 +00:00
|
|
|
apply plugin: 'kotlin'
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'net.corda.plugins.publish-utils'
|
|
|
|
|
2017-02-23 11:32:19 +00:00
|
|
|
// TODO: Break dependency on node and move to another location such as a submodule of client.
|
2017-03-10 13:58:06 +00:00
|
|
|
description 'Corda node web server'
|
2017-01-30 13:51:00 +00:00
|
|
|
|
2017-01-30 14:00:54 +00:00
|
|
|
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')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
test {
|
|
|
|
resources {
|
|
|
|
srcDir "../config/test"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
main {
|
|
|
|
resources {
|
|
|
|
srcDir "../config/dev"
|
|
|
|
}
|
|
|
|
}
|
2017-01-30 13:51:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2017-01-30 14:00:54 +00:00
|
|
|
compile project(':core')
|
2017-03-30 13:27:18 +00:00
|
|
|
compile project(':client:rpc')
|
2017-03-02 16:58:55 +00:00
|
|
|
compile project(':client:jackson')
|
2017-01-30 14:00:54 +00:00
|
|
|
|
|
|
|
// 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"
|
|
|
|
compile "org.jolokia:jolokia-agent-war:$jolokia_version"
|
2017-03-22 15:52:54 +00:00
|
|
|
compile "commons-fileupload:commons-fileupload:$fileupload_version"
|
2017-01-30 14:00:54 +00:00
|
|
|
|
2017-03-30 13:27:18 +00:00
|
|
|
// JOpt: for command line flags.
|
|
|
|
compile "net.sf.jopt-simple:jopt-simple:$jopt_simple_version"
|
|
|
|
|
2017-01-30 14:00:54 +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}"
|
|
|
|
// NOTE there is a Jackson version clash between jersey-media-json-jackson (v2.5.4) and jackson-module-kotlin (v.2.5.5)
|
|
|
|
// Have not found an Issue in the issue tracker for Jersey for this issue
|
|
|
|
compile ("org.glassfish.jersey.media:jersey-media-json-jackson:${jersey_version}") {
|
|
|
|
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-annotations'
|
|
|
|
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'
|
|
|
|
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-core'
|
|
|
|
}
|
|
|
|
|
|
|
|
compile ("com.fasterxml.jackson.module:jackson-module-kotlin:${jackson_version}") {
|
|
|
|
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-annotations'
|
|
|
|
}
|
|
|
|
|
|
|
|
testCompile "junit:junit:$junit_version"
|
|
|
|
}
|
|
|
|
|
|
|
|
task integrationTest(type: Test) {
|
|
|
|
testClassesDir = sourceSets.integrationTest.output.classesDir
|
|
|
|
classpath = sourceSets.integrationTest.runtimeClasspath
|
2017-03-10 13:58:06 +00:00
|
|
|
}
|