2017-01-30 13:51:00 +00:00
|
|
|
apply plugin: 'kotlin'
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'net.corda.plugins.publish-utils'
|
2017-06-26 17:07:56 +00:00
|
|
|
apply plugin: 'com.jfrog.artifactory'
|
2017-01-30 13:51:00 +00:00
|
|
|
|
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')
|
|
|
|
}
|
|
|
|
}
|
2017-04-25 15:14:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
processResources {
|
2017-05-05 12:12:36 +00:00
|
|
|
from file("$rootDir/config/dev/log4j2.xml")
|
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
|
2017-03-31 10:31:20 +00:00
|
|
|
compile "org.eclipse.jetty:jetty-servlet:$jetty_version"
|
|
|
|
compile "org.eclipse.jetty:jetty-webapp:$jetty_version"
|
2017-01-30 14:00:54 +00:00
|
|
|
compile "javax.servlet:javax.servlet-api:3.1.0"
|
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 15:59:07 +00:00
|
|
|
// Log4J: logging framework (with SLF4J bindings)
|
|
|
|
compile "org.apache.logging.log4j:log4j-slf4j-impl:$log4j_version"
|
|
|
|
compile "org.apache.logging.log4j:log4j-core:$log4j_version"
|
|
|
|
|
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
|
2017-10-26 11:16:57 +00:00
|
|
|
// TODO: remove force upgrade when jersey catches up
|
|
|
|
compile "org.eclipse.jetty:jetty-continuation:${jetty_version}"
|
|
|
|
|
2017-03-31 10:31:20 +00:00
|
|
|
compile "org.glassfish.jersey.core:jersey-server:$jersey_version"
|
2018-08-17 13:08:48 +00:00
|
|
|
compile "org.glassfish.jersey.containers:jersey-container-servlet:$jersey_version"
|
2017-03-31 10:31:20 +00:00
|
|
|
compile "org.glassfish.jersey.containers:jersey-container-jetty-http:$jersey_version"
|
|
|
|
compile "org.glassfish.jersey.media:jersey-media-json-jackson:$jersey_version"
|
2017-01-30 14:00:54 +00:00
|
|
|
|
2017-04-25 16:17:02 +00:00
|
|
|
// For rendering the index page.
|
|
|
|
compile "org.jetbrains.kotlinx:kotlinx-html-jvm:0.6.3"
|
|
|
|
|
2017-09-05 08:50:51 +00:00
|
|
|
integrationTestCompile project(':node-driver')
|
2017-01-30 14:00:54 +00:00
|
|
|
testCompile "junit:junit:$junit_version"
|
|
|
|
}
|
|
|
|
|
|
|
|
task integrationTest(type: Test) {
|
2017-08-24 15:46:54 +00:00
|
|
|
testClassesDirs = sourceSets.integrationTest.output.classesDirs
|
2017-01-30 14:00:54 +00:00
|
|
|
classpath = sourceSets.integrationTest.runtimeClasspath
|
2017-04-03 16:06:30 +00:00
|
|
|
}
|
2017-06-06 14:05:47 +00:00
|
|
|
|
|
|
|
jar {
|
|
|
|
baseName 'corda-webserver-impl'
|
|
|
|
}
|
|
|
|
|
|
|
|
publish {
|
2017-07-18 11:34:56 +00:00
|
|
|
name jar.baseName
|
2017-06-06 14:05:47 +00:00
|
|
|
}
|