-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
53 lines (46 loc) · 1.31 KB
/
build.gradle.kts
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
import com.google.protobuf.gradle.*
plugins {
id("org.springframework.boot") version "2.7.3"
id("io.spring.dependency-management") version "1.0.13.RELEASE"
id("java")
id("com.google.protobuf") version "0.8.17"
}
group = "zm.gov.moh.hie"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("io.grpc:grpc-netty:1.49.0")
implementation("io.grpc:grpc-protobuf:1.49.0")
implementation("io.grpc:grpc-stub:1.49.0")
implementation("com.google.protobuf:protobuf-java:3.21.5")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("io.projectreactor:reactor-test")
}
tasks.withType<Test> {
useJUnitPlatform()
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:3.21.5"
}
plugins {
id("grpc") {
artifact = "io.grpc:protoc-gen-grpc-java:1.49.0"
}
}
generateProtoTasks {
ofSourceSet("main").forEach {
it.builtins {
java {}
}
it.plugins {
id("grpc")
}
}
}
}