-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
51 lines (40 loc) · 984 Bytes
/
build.gradle.kts
File metadata and controls
51 lines (40 loc) · 984 Bytes
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
var protobufVersion = "3.14.0"
var grpcVersion = "1.35.0"
plugins {
id("java")
id("idea")
id("com.google.protobuf") version "0.9.4"
}
group = "kr.syeyoung.dungeonsguide"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
runtimeOnly("io.grpc:grpc-netty-shaded:1.67.1")
implementation("io.grpc:grpc-protobuf:1.67.1")
implementation("io.grpc:grpc-stub:1.67.1")
compileOnly("jakarta.annotation:jakarta.annotation-api:1.3.5")
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
tasks.test {
useJUnitPlatform()
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:3.25.3"
}
plugins {
create("grpc") {
artifact = "io.grpc:protoc-gen-grpc-java:1.67.1"
}
}
generateProtoTasks {
all().forEach {
it.plugins {
create("grpc")
}
}
}
}