-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
71 lines (58 loc) · 1.26 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
buildscript {
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
}
plugins {
id "java"
id "eclipse"
id "application"
}
task printClasspath {
doLast {
configurations.testRuntime.each { println it }
}
}
archivesBaseName = "chaincode"
mainClassName="com.ibm.JavaCDD"
run {
if (project.hasProperty("appArgs")) {
args = Eval.me(appArgs)
}
}
sourceSets {
main {
java {
srcDir 'src/main/java'
}
}
}
repositories {
mavenLocal()
mavenCentral()
}
jar.doFirst {
destinationDir=file("${buildDir}")
manifest {
attributes (
'Main-Class': mainClassName,
'Class-Path': configurations.runtime.collect { "libs/"+"$it.name" }.join(' ')
)
}
}
task copyToLib(type: Copy) {
into "$buildDir/libs"
from configurations.runtime
}
build.finalizedBy(copyToLib)
dependencies {
compile 'io.grpc:grpc-all:0.13.2'
compile 'commons-cli:commons-cli:1.3.1'
compile 'org.hyperledger.fabric-sdk-java:fabric-sdk-java:0.6'
compile 'com.fasterxml.jackson.core:jackson-databind:2.8.3'
compile 'org.apache.commons:commons-lang3:3.5'
testCompile 'org.mockito:mockito-core:2.1.0'
testCompile 'junit:junit:4.12'
}