mirror of
https://github.com/corda/corda.git
synced 2025-04-07 19:34:41 +00:00
Started capsule work.
This commit is contained in:
parent
5daad3580c
commit
c45aa9ffb1
@ -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']
|
||||
}
|
||||
}
|
||||
|
||||
|
8
src/main/java/CordaCaplet.java
Normal file
8
src/main/java/CordaCaplet.java
Normal 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);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user