-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuild.gradle
61 lines (51 loc) · 1.86 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
apply plugin: "kotlin"
apply plugin: "net.corda.plugins.cordapp"
apply plugin: "net.corda.plugins.quasar-utils"
apply plugin: 'org.jetbrains.dokka'
cordapp {
info {
name "DID CorDapp Read Flows"
vendor "UNMAINTAINED"
targetPlatformVersion corda_platform_version.toInteger()
minimumPlatformVersion corda_platform_version.toInteger()
}
signing {
enabled false
}
}
configurations {
modules
compile.extendsFrom(modules)
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
testCompile "junit:junit:$junit_version"
testCompile "com.natpryce:hamkrest:$hamkrest_version"
// Corda integration dependencies
cordaCompile "$corda_release_group:corda-core:$corda_release_version"
cordaCompile "$corda_release_group:corda-jackson:$corda_release_version"
cordaCompile "$corda_release_group:corda-rpc:$corda_release_version"
cordaRuntime "$corda_release_group:corda:$corda_release_version"
testCompile "$corda_release_group:corda-node-driver:$corda_release_version"
// CorDapp dependencies
// Specify your cordapp"s dependencies below, including dependent CorDapps
cordapp "$corda_release_group:corda-finance-contracts:$corda_release_version"
cordapp "$corda_release_group:corda-finance-workflows:$corda_release_version"
modules project(':did-envelope')
testCompile project(":did-witness-flows")
}
jar {
configurations.modules.collect { it.isDirectory() ? it : zipTree(it) }
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
languageVersion = "1.2"
apiVersion = "1.2"
jvmTarget = "1.8"
javaParameters = true // Useful for reflection.
}
}
task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
outputFormat = 'javadoc'
outputDirectory = "$buildDir/javadoc"
}