mirror of
https://github.com/corda/corda.git
synced 2024-12-22 14:22:28 +00:00
4aaefb4fe9
* Split Workflow and contracts of Finance App into separate Cordapps, part 1 - content which is different between OS and ENT is still in contract Cordapp. * Move CashSelection implementations to workflow module. * Move CashSelection implmentations to workflow module. * Move finance module to finance-flows, top level finance module is empty. * Move finance module to finance-flows, top level finance module is empty. * Updated build comment. * Revert publication of combined (contracts and flows) corda-finance.jar (to maintain backwards compatibility with 3rd party cordapps dependent on finance) * Added backwards compatibility clarification comment. * Re-instate new cordapp metadata. * Global rename of `finance-flows` to `finance-workflows` to follow adopted naming conventions. * Addressed final review comments. * Rename application to "Corda Finance Demo" * Generation of original corda-finance jar from new sub-modules. * Fixed and tested demobench with new split finance contract and workflow jars. * Renamed finance sub-modules to contracts and workflows. * Remove Michele!!! * Minor fix to filtering logic. * Align CorDapp configuration filename with workflows jar. * Fix breaks caused by finance module naming changes. * Final alignment between OS/ENT of finance contract code.
101 lines
2.9 KiB
Groovy
101 lines
2.9 KiB
Groovy
apply plugin: 'kotlin'
|
|
apply plugin: 'application'
|
|
apply plugin: 'net.corda.plugins.cordformation'
|
|
apply plugin: 'net.corda.plugins.quasar-utils'
|
|
|
|
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')
|
|
}
|
|
java {
|
|
compileClasspath += main.output + test.output
|
|
runtimeClasspath += main.output + test.output
|
|
srcDir file('src/integration-test/java')
|
|
}
|
|
}
|
|
}
|
|
|
|
compileTestJava.dependsOn tasks.getByPath(':node:capsule:buildCordaJAR')
|
|
|
|
dependencies {
|
|
compile project(':core')
|
|
compile project(':client:jfx')
|
|
compile project(':node-driver')
|
|
compile project(':webserver')
|
|
testCompile project(':test-utils')
|
|
|
|
compile "org.graphstream:gs-core:1.3"
|
|
compile("org.graphstream:gs-ui:1.3") {
|
|
exclude group: "bouncycastle"
|
|
exclude group: "junit"
|
|
}
|
|
|
|
compile project(path: ":node:capsule", configuration: 'runtimeArtifacts')
|
|
compile project(path: ":webserver:webcapsule", configuration: 'runtimeArtifacts')
|
|
|
|
// CorDapps: dependent flows and services
|
|
compile project(':finance:contracts')
|
|
compile project(':finance:workflows')
|
|
}
|
|
|
|
mainClassName = "net.corda.docs.ClientRpcTutorialKt"
|
|
|
|
task getClientRpcTutorial(type: CreateStartScripts) {
|
|
dependsOn(classes)
|
|
mainClassName = "net.corda.docs.ClientRpcTutorialKt"
|
|
applicationName = "client-rpc-tutorial"
|
|
defaultJvmOpts = []
|
|
outputDir = new File(project.buildDir, 'scripts')
|
|
classpath = jar.outputs.files + project.configurations.runtime
|
|
}
|
|
|
|
applicationDistribution.into("bin") {
|
|
from(getClientRpcTutorial)
|
|
fileMode = 0755
|
|
}
|
|
|
|
task integrationTest(type: Test) {
|
|
testClassesDirs = sourceSets.integrationTest.output.classesDirs
|
|
classpath = sourceSets.integrationTest.runtimeClasspath
|
|
}
|
|
|
|
task deployNodes(type: net.corda.plugins.Cordform, dependsOn: ['jar']) {
|
|
directory "./build/nodes"
|
|
node {
|
|
name "O=Notary Service,OU=corda,L=London,C=GB"
|
|
notary = [validating : true]
|
|
p2pPort 10002
|
|
rpcSettings {
|
|
address "localhost:10003"
|
|
adminAddress "localhost:10013"
|
|
}
|
|
webPort 10004
|
|
extraConfig = ['h2Settings.address' : 'localhost:10014']
|
|
cordapps = []
|
|
}
|
|
node {
|
|
name "O=Alice Corp,L=London,C=GB"
|
|
p2pPort 10005
|
|
rpcSettings {
|
|
address "localhost:10006"
|
|
adminAddress "localhost:10016"
|
|
}
|
|
webPort 10007
|
|
extraConfig = ['h2Settings.address' : 'localhost:10017']
|
|
cordapps = []
|
|
rpcUsers = [
|
|
['username' : "user",
|
|
'password' : "password",
|
|
'permissions' : ["StartFlow.net.corda.finance.flows.CashFlow"]]
|
|
]
|
|
}
|
|
}
|