-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
81 lines (71 loc) · 1.87 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
81
plugins {
id 'org.springframework.boot' version '2.2.7.RELEASE'
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
id 'java'
id 'com.google.protobuf' version '0.8.10'
}
group = 'com.winitech.rnd'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '8'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencyManagement {
imports {
mavenBom 'com.linecorp.armeria:armeria-bom:1.3.0'
mavenBom 'io.netty:netty-bom:4.1.54.Final'
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'com.linecorp.armeria:armeria-spring-boot2-webflux-starter'
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.1.2'
runtimeOnly 'org.postgresql:postgresql'
runtimeOnly files('libs/tibero6-jdbc.jar')
implementation 'com.linecorp.armeria:armeria-grpc'
compileOnly 'org.projectlombok:lombok'
compile group: 'org.javassist', name: 'javassist', version: '3.27.0-GA'
annotationProcessor 'org.projectlombok:lombok'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testImplementation 'io.projectreactor:reactor-test'
}
test {
useJUnitPlatform()
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:3.10.0"
}
plugins {
grpc {
artifact = 'io.grpc:protoc-gen-grpc-java:1.25.0'
}
}
generateProtoTasks {
all()*.plugins {
grpc {}
}
all().each { task ->
task.generateDescriptorSet = true
task.descriptorSetOptions.includeSourceInfo = true
task.descriptorSetOptions.includeImports = true
task.descriptorSetOptions.path =
"${buildDir}/resources/main/META-INF/armeria/grpc/service-name.dsc"
}
}
}
sourceSets {
main {
java {
srcDir 'build/generated/source/proto/main/grpc'
srcDir 'build/generated/source/proto/main/java'
}
}
}