This repository has been archived by the owner on Aug 16, 2019. It is now read-only.
forked from ragmondo/corda-nodeinfo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
84 lines (72 loc) · 2.35 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
buildscript {
ext.corda_release_group = 'net.corda'
ext.corda_release_version = 'corda-3.0'
ext.corda_gradle_plugins_version = '3.0.9'
ext.kotlin_version = '1.1.60'
ext.junit_version = '4.12'
ext.quasar_version = '0.7.9'
ext.slf4j_version = '1.7.25'
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "net.corda.plugins:cordapp:$corda_gradle_plugins_version"
classpath "net.corda.plugins:cordformation:$corda_gradle_plugins_version"
classpath "net.corda.plugins:quasar-utils:$corda_gradle_plugins_version"
classpath "us.kirchmeier:gradle-capsule-plugin:1.0.2"
}
}
repositories {
mavenLocal()
jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url 'https://ci-artifactory.corda.r3cev.com/artifactory/corda-releases' }
}
apply plugin: 'kotlin'
apply plugin: 'net.corda.plugins.cordapp'
apply plugin: 'net.corda.plugins.cordformation'
apply plugin: 'net.corda.plugins.quasar-utils'
apply plugin: "us.kirchmeier.capsule"
sourceSets {
main {
resources {
srcDir "config/dev"
}
}
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
compile "org.slf4j:slf4j-nop:$slf4j_version"
cordaCompile "net.corda:corda-rpc:$corda_release_version"
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
languageVersion = "1.1"
apiVersion = "1.1"
jvmTarget = "1.8"
javaParameters = true // Useful for reflection.
}
}
task getInfo(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = 'net.corda.nodeinfo.MainKt'
if (project.hasProperty('host')) {
// args project.properties.get(0), project.properties.get(1), project.properties.get(2)
args project.properties.get("host"), project.properties.get("username"), project.properties.get("password")
//args project.properties('args')
} else {
args "localhost:10006", "corda", "corda_default_password"
}
}
task executableJar(type: FatCapsule) {
applicationClass 'net.corda.nodeinfo.MainKt'
baseName 'nodeinfo'
reallyExecutable
}