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'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-25 15:26:00 +00:00
|
|
|
configurations {
|
|
|
|
integrationTestCompile.extendsFrom testCompile
|
|
|
|
integrationTestRuntime.extendsFrom testRuntime
|
|
|
|
}
|
|
|
|
|
2016-11-15 12:36:17 +00:00
|
|
|
sourceSets {
|
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-12-06 15:03:33 +00:00
|
|
|
compileTestJava.dependsOn tasks.getByPath(':node:capsule:buildCordaJAR')
|
2016-11-30 15:58:00 +00:00
|
|
|
|
2016-10-04 12:56:31 +00:00
|
|
|
dependencies {
|
2017-10-09 19:08:08 +00:00
|
|
|
compile project(':core')
|
|
|
|
compile project(':client:jfx')
|
|
|
|
compile project(':node-driver')
|
2017-12-13 16:22:40 +00:00
|
|
|
compile project(':webserver')
|
2017-09-15 08:02:52 +00:00
|
|
|
testCompile 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"
|
2017-09-29 12:43:42 +00:00
|
|
|
exclude group: "junit"
|
2016-10-04 12:56:31 +00:00
|
|
|
}
|
|
|
|
|
2017-10-09 19:08:08 +00:00
|
|
|
compile project(path: ":node:capsule", configuration: 'runtimeArtifacts')
|
|
|
|
compile project(path: ":webserver:webcapsule", configuration: 'runtimeArtifacts')
|
2017-09-05 09:22:34 +00:00
|
|
|
|
|
|
|
// Corda Plugins: dependent flows and services
|
2017-10-09 19:08:08 +00:00
|
|
|
compile project(':finance')
|
2016-11-25 17:56:56 +00:00
|
|
|
}
|
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) {
|
2017-08-24 15:46:54 +00:00
|
|
|
testClassesDirs = sourceSets.integrationTest.output.classesDirs
|
2016-11-25 15:26:00 +00:00
|
|
|
classpath = sourceSets.integrationTest.runtimeClasspath
|
2016-11-25 17:56:56 +00:00
|
|
|
}
|
|
|
|
|
2017-04-04 14:45:41 +00:00
|
|
|
task deployNodes(type: net.corda.plugins.Cordform, dependsOn: ['jar']) {
|
2016-11-25 17:56:56 +00:00
|
|
|
directory "./build/nodes"
|
|
|
|
node {
|
2017-09-07 13:47:42 +00:00
|
|
|
name "O=Notary Service,OU=corda,L=London,C=GB"
|
2017-10-05 11:27:45 +00:00
|
|
|
notary = [validating : true]
|
2017-03-17 10:32:14 +00:00
|
|
|
p2pPort 10002
|
2018-02-22 09:47:56 +00:00
|
|
|
rpcSettings {
|
|
|
|
address "localhost:10003"
|
|
|
|
adminAddress "localhost:10013"
|
|
|
|
}
|
2017-03-17 10:32:14 +00:00
|
|
|
webPort 10004
|
2016-11-25 17:56:56 +00:00
|
|
|
cordapps = []
|
|
|
|
}
|
|
|
|
node {
|
2017-09-07 13:47:42 +00:00
|
|
|
name "O=Alice Corp,L=London,C=GB"
|
2017-03-17 10:32:14 +00:00
|
|
|
p2pPort 10005
|
2018-02-22 09:47:56 +00:00
|
|
|
rpcSettings {
|
|
|
|
address "localhost:10006"
|
|
|
|
adminAddress "localhost:10016"
|
|
|
|
}
|
2017-03-17 10:32:14 +00:00
|
|
|
webPort 10007
|
2016-11-25 17:56:56 +00:00
|
|
|
cordapps = []
|
|
|
|
rpcUsers = [
|
2017-04-07 10:23:25 +00:00
|
|
|
['username' : "user",
|
2016-11-25 17:56:56 +00:00
|
|
|
'password' : "password",
|
2017-08-21 15:40:28 +00:00
|
|
|
'permissions' : ["StartFlow.net.corda.finance.flows.CashFlow"]]
|
2016-11-25 17:56:56 +00:00
|
|
|
]
|
|
|
|
}
|
2017-01-03 14:15:23 +00:00
|
|
|
}
|