apply plugin: 'kotlin' apply plugin: 'java' apply plugin: 'net.corda.plugins.publish-utils' // TODO: Break dependency on node and move to another location such as a submodule of client. description 'Corda node web server' 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" } } } dependencies { compile project(':core') compile project(':node') // TODO: Break this dependency compile project(':client:jackson') // 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" compile "commons-fileupload:commons-fileupload:$fileupload_version" // 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 }