-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
71 lines (59 loc) · 1.69 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.18'
}
}
plugins {
id 'org.springframework.boot' version '2.1.5.RELEASE'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id 'com.google.protobuf' version "0.8.18"
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'com.google.protobuf'
apply plugin: 'io.spring.dependency-management'
group = 'com.demo.grpc'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
repositories {
mavenCentral()
}
dependencies {
runtimeOnly 'io.grpc:grpc-netty-shaded:1.45.1'
annotationProcessor 'org.projectlombok:lombok:1.18.20'
compileOnly 'org.apache.tomcat:annotations-api:6.0.53' // necessary for Java 9+
compileOnly 'org.projectlombok:lombok:1.18.20'
implementation 'io.grpc:grpc-protobuf:1.45.1'
implementation 'io.grpc:grpc-stub:1.45.1'
implementation('org.springframework.boot:spring-boot-starter-webflux')
implementation('de.flapdoodle.embed:de.flapdoodle.embed.mongo')
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'net.devh:grpc-spring-boot-starter:2.13.1.RELEASE'
implementation "com.salesforce.servicelibs:reactor-grpc-stub:1.2.3"
testImplementation('org.springframework.boot:spring-boot-starter-test')
testImplementation('io.projectreactor:reactor-test')
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:3.19.2"
}
plugins {
grpc {
artifact = 'io.grpc:protoc-gen-grpc-java:1.45.1'
}
reactor {
artifact = "com.salesforce.servicelibs:reactor-grpc:1.2.3"
}
}
generateProtoTasks {
all()*.plugins {
grpc {}
reactor {}
}
}
generatedFilesBaseDir = "$projectDir/generated"
}