-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
71 lines (62 loc) · 1.4 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
plugins {
id 'java'
id "com.google.protobuf" version "0.8.8"
}
group 'com.github.kodomo'
version '1.0-SNAPSHOT'
sourceCompatibility = '1.8'
repositories {
mavenCentral()
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.20'
annotationProcessor 'org.projectlombok:lombok:1.18.20'
implementation("com.google.protobuf:protobuf-java-util:3.13.0")
implementation("io.grpc:grpc-protobuf:1.31.1")
implementation("io.grpc:grpc-stub:1.31.1")
implementation("io.grpc:grpc-netty-shaded:1.31.1")
implementation("mysql:mysql-connector-java:8.0.23")
}
test {
useJUnitPlatform()
}
ext {
set('grpcVersion', '1.32.1')
}
sourceSets {
main {
java {
srcDir 'src/main/protoGen'
}
}
}
protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.5.1'
}
plugins {
grpc {
artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}"
}
}
generateProtoTasks {
ofSourceSet('main').each { task ->
task.builtins {
java{
outputSubDir = 'protoGen'
}
}
task.plugins {
grpc {
outputSubDir = 'protoGen'
}
}
}
}
generatedFilesBaseDir = "$projectDir/src/"
}