mirror of
https://github.com/corda/corda.git
synced 2024-12-19 13:08:04 +00:00
c86e78599f
Fixup after rebase Correct bad merges Fixup docs Fix integration test Correct doc references to finance
96 lines
2.6 KiB
Groovy
96 lines
2.6 KiB
Groovy
apply plugin: 'kotlin'
|
|
apply plugin: 'application'
|
|
apply plugin: 'net.corda.plugins.cordformation'
|
|
apply plugin: 'net.corda.plugins.quasar-utils'
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
jcenter()
|
|
maven {
|
|
url 'http://oss.sonatype.org/content/repositories/snapshots'
|
|
}
|
|
maven {
|
|
url 'https://dl.bintray.com/kotlin/exposed'
|
|
}
|
|
}
|
|
|
|
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')
|
|
}
|
|
}
|
|
}
|
|
|
|
compileTestJava.dependsOn tasks.getByPath(':node:capsule:buildCordaJAR')
|
|
|
|
dependencies {
|
|
cordaCompile project(':core')
|
|
cordaCompile project(':client:jfx')
|
|
cordaCompile project(':test-utils')
|
|
testCompile project(':verifier')
|
|
|
|
compile "org.graphstream:gs-core:1.3"
|
|
compile("org.graphstream:gs-ui:1.3") {
|
|
exclude group: "bouncycastle"
|
|
}
|
|
|
|
cordaCompile project(path: ":node:capsule", configuration: 'runtimeArtifacts')
|
|
cordaCompile project(path: ":webserver:webcapsule", configuration: 'runtimeArtifacts')
|
|
}
|
|
|
|
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) {
|
|
testClassesDir = sourceSets.integrationTest.output.classesDir
|
|
classpath = sourceSets.integrationTest.runtimeClasspath
|
|
}
|
|
|
|
task deployNodes(type: net.corda.plugins.Cordform, dependsOn: ['jar']) {
|
|
directory "./build/nodes"
|
|
networkMap "CN=Notary Service,O=R3,OU=corda,L=London,C=GB"
|
|
node {
|
|
name "CN=Notary Service,O=R3,OU=corda,L=London,C=GB"
|
|
advertisedServices = ["corda.notary.validating"]
|
|
p2pPort 10002
|
|
rpcPort 10003
|
|
webPort 10004
|
|
cordapps = []
|
|
}
|
|
node {
|
|
name "CN=Alice Corp,O=Alice Corp,L=London,C=GB"
|
|
advertisedServices = []
|
|
p2pPort 10005
|
|
rpcPort 10006
|
|
webPort 10007
|
|
cordapps = []
|
|
rpcUsers = [
|
|
['username' : "user",
|
|
'password' : "password",
|
|
'permissions' : ["StartFlow.net.corda.finance.flows.CashFlow"]]
|
|
]
|
|
}
|
|
}
|