mirror of
https://github.com/corda/corda.git
synced 2024-12-28 16:58:55 +00:00
4a504ca3dc
Complete the transaction building doc with code fragments. Fix gradle build Handle PR comments Put back in missing main class line Couple of minor improvements from PR
99 lines
2.4 KiB
Groovy
99 lines
2.4 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 {
|
|
main {
|
|
resources {
|
|
srcDir "../../../config/dev"
|
|
}
|
|
}
|
|
|
|
integrationTest {
|
|
kotlin {
|
|
compileClasspath += main.output + test.output
|
|
runtimeClasspath += main.output + test.output
|
|
srcDir file('src/integration-test/kotlin')
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile project(':core')
|
|
compile project(':client')
|
|
compile project(':test-utils')
|
|
|
|
compile "org.graphstream:gs-core:1.3"
|
|
compile("org.graphstream:gs-ui:1.3") {
|
|
exclude group: "bouncycastle"
|
|
}
|
|
|
|
runtime "net.corda:corda:$corda_version"
|
|
}
|
|
|
|
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: [':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"]]
|
|
]
|
|
}
|
|
} |