-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
69 lines (57 loc) · 1.89 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
buildscript {
repositories {
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.3'
}
}
allprojects {
group 'io.token'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'com.google.protobuf'
apply plugin: 'application'
sourceCompatibility = 1.8
mainClassName='server.Application'
repositories {
mavenLocal()
jcenter()
maven { url 'https://token.jfrog.io/token/public-libs-release-local/' }
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile 'grpcbridge:grpcbridge:1.0.16'
compile group: 'io.token.sdk', name: 'tokenio-sdk-java', version: '1.1.6'
compile group: 'io.token.rpc', name: 'tokenio-rpc-common', version: '1.0.98'
compile group: 'io.grpc', name: 'grpc-netty', version: '0.15.0'
compile group: 'io.grpc', name: 'grpc-stub', version: '0.15.0'
compile "com.sparkjava:spark-core:2.5"
compile group: 'io.token.proto', name: 'tokenio-proto-common', version: '1.0.478'
}
protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.0.0'
}
plugins {
grpc {
artifact = 'io.grpc:protoc-gen-grpc-java:0.15.0'
}
}
generateProtoTasks {
all()*.plugins {
grpc {}
}
}
}
idea {
module {
sourceDirs += file("${protobuf.generatedFilesBaseDir}/main/java");
sourceDirs += file("${protobuf.generatedFilesBaseDir}/main/grpc");
sourceDirs += file("${protobuf.generatedFilesBaseDir}/test/java");
sourceDirs += file("${protobuf.generatedFilesBaseDir}/test/grpc");
}
}
}