2016-10-04 12:56:31 +00:00
|
|
|
apply plugin: 'kotlin'
|
|
|
|
apply plugin: 'application'
|
2016-11-25 17:56:56 +00:00
|
|
|
apply plugin: 'net.corda.plugins.cordformation'
|
2016-11-28 13:39:34 +00:00
|
|
|
apply plugin: 'net.corda.plugins.quasar-utils'
|
2016-10-04 12:56:31 +00:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
|
|
|
jcenter()
|
|
|
|
maven {
|
|
|
|
url 'http://oss.sonatype.org/content/repositories/snapshots'
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
url 'https://dl.bintray.com/kotlin/exposed'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-25 15:26:00 +00:00
|
|
|
configurations {
|
|
|
|
integrationTestCompile.extendsFrom testCompile
|
|
|
|
integrationTestRuntime.extendsFrom testRuntime
|
|
|
|
}
|
|
|
|
|
2016-11-15 12:36:17 +00:00
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
resources {
|
|
|
|
srcDir "../../../config/dev"
|
|
|
|
}
|
|
|
|
}
|
2016-11-25 15:26:00 +00:00
|
|
|
|
|
|
|
integrationTest {
|
|
|
|
kotlin {
|
|
|
|
compileClasspath += main.output + test.output
|
|
|
|
runtimeClasspath += main.output + test.output
|
|
|
|
srcDir file('src/integration-test/kotlin')
|
|
|
|
}
|
|
|
|
}
|
2016-11-15 12:36:17 +00:00
|
|
|
}
|
|
|
|
|
2016-10-04 12:56:31 +00:00
|
|
|
dependencies {
|
|
|
|
compile project(':core')
|
|
|
|
compile project(':client')
|
2016-11-25 15:26:00 +00:00
|
|
|
compile project(':test-utils')
|
2016-10-04 12:56:31 +00:00
|
|
|
|
|
|
|
compile "org.graphstream:gs-core:1.3"
|
|
|
|
compile("org.graphstream:gs-ui:1.3") {
|
|
|
|
exclude group: "bouncycastle"
|
|
|
|
}
|
|
|
|
|
2016-11-25 17:56:56 +00:00
|
|
|
runtime "net.corda:corda:$corda_version"
|
|
|
|
}
|
2016-10-04 12:56:31 +00:00
|
|
|
|
2016-11-28 13:39:34 +00:00
|
|
|
mainClassName = "net.corda.docs.ClientRpcTutorialKt"
|
|
|
|
|
2016-10-04 12:56:31 +00:00
|
|
|
task getClientRpcTutorial(type: CreateStartScripts) {
|
|
|
|
dependsOn(classes)
|
2016-11-10 13:14:38 +00:00
|
|
|
mainClassName = "net.corda.docs.ClientRpcTutorialKt"
|
2016-10-04 12:56:31 +00:00
|
|
|
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
|
|
|
|
}
|
2016-11-25 15:26:00 +00:00
|
|
|
|
|
|
|
task integrationTest(type: Test) {
|
|
|
|
testClassesDir = sourceSets.integrationTest.output.classesDir
|
|
|
|
classpath = sourceSets.integrationTest.runtimeClasspath
|
2016-11-25 17:56:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
task deployNodes(type: net.corda.plugins.Cordform, dependsOn: [':install', 'build']) {
|
|
|
|
directory "./build/nodes"
|
|
|
|
networkMap "Notary"
|
|
|
|
node {
|
|
|
|
name "Notary"
|
|
|
|
dirName "notary"
|
|
|
|
nearestCity "London"
|
|
|
|
advertisedServices = ["corda.notary.validating"]
|
|
|
|
artemisPort 10002
|
|
|
|
webPort 10003
|
|
|
|
cordapps = []
|
|
|
|
}
|
|
|
|
node {
|
|
|
|
name "Alice"
|
|
|
|
dirName "alice"
|
|
|
|
nearestCity "London"
|
|
|
|
advertisedServices = []
|
|
|
|
artemisPort 10004
|
|
|
|
webPort 10005
|
|
|
|
cordapps = []
|
|
|
|
rpcUsers = [
|
|
|
|
['user' : "user",
|
|
|
|
'password' : "password",
|
|
|
|
'permissions' : ["StartFlow.net.corda.flows.CashFlow"]]
|
|
|
|
]
|
|
|
|
}
|
2016-11-25 15:26:00 +00:00
|
|
|
}
|