mirror of
https://github.com/corda/corda.git
synced 2024-12-22 14:22:28 +00:00
4762569200
* JMX Jolokia instrumentation WIP (driverDSL, webserver, cordformation, hibernate statistics, access policy config file hardening) * Cordformation changes to support jolokia agent instrumentation at JVM startup. * Minor updates to reflect usage of Jolokia 1.3.7 (which uses slightly different .war naming) * Use relative path reference in -javaagent to prevent problem with long path names with spaces. * Fixed incorrect regex pattern and added assertion to test. * Enable JMX monitoring. * Reporting of Hibernate JMX statistics is configurable (by default, only switched on in devMode) * Make Artemis JMX enablement configurable. * Re-instate banning of java serialization. * Improve JUnit. * Fixes following rebase from master. * Re-instated correct regex for picking up Jolokia agent jar. * Fixed broken integration test. * Updated documentation * Updated following PR review feedback. * Fixed compilation error caused by change in DriverDSL argument type. * Fixed compilation error caused by change in DriverDSL argument type. * Fail fast if jolokia-agent-jvm.jar is not located. * Applied changes in cordformation following review feedback from CA.
79 lines
2.4 KiB
Groovy
79 lines
2.4 KiB
Groovy
apply plugin: 'kotlin'
|
|
apply plugin: 'java'
|
|
apply plugin: 'net.corda.plugins.publish-utils'
|
|
apply plugin: 'com.jfrog.artifactory'
|
|
|
|
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')
|
|
}
|
|
}
|
|
}
|
|
|
|
processResources {
|
|
from file("$rootDir/config/dev/log4j2.xml")
|
|
from file("$rootDir/config/dev/jolokia-access.xml")
|
|
}
|
|
|
|
processTestResources {
|
|
from file("$rootDir/config/test/jolokia-access.xml")
|
|
}
|
|
|
|
dependencies {
|
|
compile project(':core')
|
|
compile project(':client:rpc')
|
|
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-war:$jolokia_version"
|
|
compile "commons-fileupload:commons-fileupload:$fileupload_version"
|
|
|
|
// 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"
|
|
|
|
// JOpt: for command line flags.
|
|
compile "net.sf.jopt-simple:jopt-simple:$jopt_simple_version"
|
|
|
|
// Jersey for JAX-RS implementation for use in Jetty
|
|
// TODO: remove force upgrade when jersey catches up
|
|
compile "org.eclipse.jetty:jetty-continuation:${jetty_version}"
|
|
|
|
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"
|
|
compile "org.glassfish.jersey.media:jersey-media-json-jackson:$jersey_version"
|
|
|
|
// For rendering the index page.
|
|
compile "org.jetbrains.kotlinx:kotlinx-html-jvm:0.6.3"
|
|
|
|
integrationTestCompile project(':node-driver')
|
|
testCompile "junit:junit:$junit_version"
|
|
}
|
|
|
|
task integrationTest(type: Test) {
|
|
testClassesDirs = sourceSets.integrationTest.output.classesDirs
|
|
classpath = sourceSets.integrationTest.runtimeClasspath
|
|
}
|
|
|
|
jar {
|
|
baseName 'corda-webserver-impl'
|
|
}
|
|
|
|
publish {
|
|
name jar.baseName
|
|
}
|