Started capsule work.

This commit is contained in:
Clinton Alexander 2016-08-22 11:49:55 +01:00
parent 5daad3580c
commit c45aa9ffb1
2 changed files with 12 additions and 0 deletions

View File

@ -108,6 +108,7 @@ dependencies {
compile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
compile "org.jetbrains.kotlinx:kotlinx-support-jdk8:0.2"
compile 'com.squareup.okhttp3:okhttp:3.3.1'
compile 'co.paralleluniverse:capsule:1.0.3'
// Unit testing helpers.
testCompile 'junit:junit:4.12'
@ -199,11 +200,14 @@ applicationDistribution.into("bin") {
task createCapsule(type: FatCapsule, dependsOn: 'quasarScan') {
applicationClass 'com.r3corda.node.MainKt'
applicationSource = files(project.tasks.findByName('jar'), 'build/classes/main/CordaCaplet.class')
capsuleManifest {
appClassPath = ["jolokia-agent-war-${project.ext.jolokia_version}.war"]
systemProperties['log4j.configuration'] = 'log4j2.xml'
javaAgents = ["quasar-core-${quasar_version}-jdk8.jar"]
minJavaVersion = '1.8.0'
caplets = ['CordaCaplet']
}
}

View File

@ -0,0 +1,8 @@
// Please do not move me. I need to be in the global namespace :(
public class CordaCaplet extends Capsule {
protected CordaCaplet(Capsule pred) {
super(pred);
}
}