-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
64 lines (58 loc) · 1.04 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
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.7.4'
}
}
apply plugin: 'java'
apply plugin: 'com.google.protobuf'
apply plugin: 'application'
startScripts.enabled = false
run.enabled = true
mainClassName = 'com.github.srderson.hyperledger_fabric_utxo_client_java.App'
repositories {
mavenCentral()
jcenter()
mavenLocal()
maven { url "http://oss.sonatype.org/content/repositories/snapshots" }
}
sourceSets {
main {
java {
srcDir 'src/main/java'
}
proto {
srcDir 'src/main/proto'
}
}
}
protobuf {
generatedFilesBaseDir = "$projectDir/src"
protoc {
artifact = "com.google.protobuf:protoc:3.0.0-beta-2"
}
plugins {
grpc {
artifact = 'io.grpc:protoc-gen-grpc-java:0.12.0'
}
}
generateProtoTasks {
all().each { task ->
task.builtins {
java {
outputSubDir = 'grpc'
}
}
}
all()*.plugins {
grpc {}
}
}
}
dependencies {
compile 'com.google.protobuf:protobuf-java:3.0.0-beta-2'
compile 'io.grpc:grpc-all:0.13.1'
}