-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
80 lines (67 loc) · 2.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
plugins {
id("org.springframework.boot") version "2.1.6.RELEASE"
id("org.jetbrains.kotlin.jvm") version "1.3.40"
id("org.jetbrains.kotlin.kapt") version "1.3.40"
id("org.jetbrains.kotlin.plugin.spring") version "1.3.40"
id("com.google.cloud.tools.jib") version "1.3.0"
id("com.google.protobuf") version "0.8.9"
id("idea")
}
apply plugin: "io.spring.dependency-management"
group = "techscore.com"
version = "0.0.0-SNAPSHOT"
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
compileKotlin {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
apiVersion = "1.3"
languageVersion = "1.3"
}
}
repositories {
google()
jcenter()
mavenCentral()
mavenLocal()
}
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
}
springBoot {
buildInfo()
}
dependencies {
implementation("net.devh:grpc-spring-boot-starter:2.4.0.RELEASE")
implementation("net.devh:grpc-server-spring-boot-starter:2.4.0.RELEASE")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.40")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.3.40")
implementation("io.grpc:grpc-protobuf:1.21.0")
implementation("io.grpc:grpc-stub:1.21.0")
implementation("io.grpc:grpc-services:1.21.0")
implementation("io.grpc:grpc-netty-shaded:1.21.0")
implementation("io.grpc:protoc-gen-grpc-java:1.21.0")
implementation("com.google.api.grpc:googleapis-common-protos:0.0.3")
"kapt"("org.springframework.boot:spring-boot-configuration-processor")
"kapt"("org.springframework:spring-context-indexer")
"developmentOnly"("org.springframework.boot:spring-boot-devtools")
testCompile("org.springframework.boot:spring-boot-starter-test")
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:3.7.1"
}
plugins {
grpc {
artifact = 'io.grpc:protoc-gen-grpc-java:1.21.0'
}
}
generateProtoTasks {
all()*.plugins {
grpc {}
}
}
}