-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.gradle
81 lines (71 loc) · 2.69 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
plugins {
id 'org.jetbrains.kotlin.jvm'
id 'io.spring.dependency-management' version '1.0.7.RELEASE'
id 'net.corda.plugins.quasar-utils'
id 'net.corda.plugins.cordformation'
id 'org.jetbrains.dokka'
}
ext {
spring_boot_version = '1.5.7.RELEASE'
spring_version = '4.3.11.RELEASE'
log4j_version = '2.10.0'
}
repositories {
mavenLocal()
jcenter()
mavenCentral()
maven { url 'https://dl.bintray.com/kotlin/exposed' }
maven { url 'https://jitpack.io' }
maven { url 'https://ci-artifactory.corda.r3cev.com/artifactory/corda-releases' }
}
dependencyManagement {
dependencies {
dependency "org.apache.logging.log4j:log4j-slf4j-impl:$log4j_version"
}
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
testCompile "junit:junit:$junit_version"
testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: '1.5.7.RELEASE'
testCompile group: 'org.springframework.boot', name: 'spring-boot-test', version: '1.5.7.RELEASE'
// Corda dependencies.
compile "net.corda:corda-core:$corda_release_version"
compile "net.corda:corda-jackson:$corda_release_version"
compile "net.corda:corda-rpc:$corda_release_version"
compile "net.corda:corda:$corda_release_version"
testCompile "net.corda:corda-node-driver:$corda_release_version"
testImplementation('org.springframework.boot:spring-boot-starter-test')
testImplementation 'com.ninja-squad:springmockk:1.1.0'
compile("org.springframework.boot:spring-boot-starter-websocket:$spring_boot_version") {
exclude group: "org.springframework.boot", module: "spring-boot-starter-logging"
}
compile "org.springframework.boot:spring-boot-starter-log4j2:$spring_boot_version"
compile project(":did-contracts")
compile project(":did-flows")
compile project(":did-envelope")
compile project(":did-witness-flows")
}
test {
exclude '**/*'
}
dokka {
outputFormat = 'html'
outputDirectory = "$buildDir/javadoc"
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
languageVersion = "1.2"
apiVersion = "1.2"
jvmTarget = "1.8"
}
}
task runPartyAServer(type: JavaExec, dependsOn: jar) {
classpath = sourceSets.main.runtimeClasspath
main = 'com.persistent.did.api.ServerKt'
args '--server.port=50005', '--config.rpc.host=localhost', '--config.rpc.port=10005', '--config.rpc.username=user1', '--config.rpc.password=test'
}
task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
outputFormat = 'javadoc'
outputDirectory = "$buildDir/javadoc"
}