forked from ejona86/grpc-java-10246
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
39 lines (34 loc) · 1.13 KB
/
Copy pathbuild.gradle
File metadata and controls
39 lines (34 loc) · 1.13 KB
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
plugins {
id 'application'
id 'com.google.protobuf' version '0.9.1'
}
repositories {
mavenCentral()
mavenLocal()
}
def grpcVersion = '1.57.0-SNAPSHOT'
def protobufVersion = '3.22.3'
def protocVersion = protobufVersion
dependencies {
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
implementation "io.grpc:grpc-services:${grpcVersion}"
implementation "io.grpc:grpc-stub:${grpcVersion}"
implementation "com.google.guava:guava:31.1-android"
implementation "io.grpc:grpc-netty:${grpcVersion}"
implementation "io.netty:netty-transport-native-epoll:4.1.87.Final:linux-x86_64"
implementation "io.netty:netty-transport-native-kqueue:4.1.87.Final:osx-aarch_64"
implementation "io.netty:netty-transport-native-kqueue:4.1.87.Final:osx-x86_64"
compileOnly "org.apache.tomcat:annotations-api:6.0.53"
}
protobuf {
protoc { artifact = "com.google.protobuf:protoc:${protocVersion}" }
plugins {
grpc { artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}" }
}
generateProtoTasks {
all()*.plugins { grpc {} }
}
}
tasks.named('startScripts').configure {
mainClass = 'Main'
}