-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
54 lines (49 loc) · 1.29 KB
/
build.gradle.kts
File metadata and controls
54 lines (49 loc) · 1.29 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
plugins {
id("java")
id("idea")
id("jacoco")
id("com.google.protobuf") version "0.9.4"
}
group = "com.techendear.grpc"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:4.27.0"
}
plugins {
create("grpc") {
artifact = "io.grpc:protoc-gen-grpc-java:1.64.0"
}
}
generateProtoTasks {
all().forEach {
it.plugins {
create("grpc")
}
}
}
}
dependencies {
implementation("io.grpc:grpc-netty-shaded:1.64.0")
implementation("io.grpc:grpc-protobuf:1.64.0")
implementation("io.grpc:grpc-stub:1.64.0")
runtimeOnly("io.grpc:grpc-services:1.64.0")
implementation("org.apache.tomcat:tomcat-annotations-api:11.0.0-M20")
implementation("com.google.protobuf:protobuf-java-util:4.27.0")
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
idea {
module {
generatedSourceDirs.addAll(listOf(
file("${protobuf.generatedFilesBaseDir}/main/grpc"),
file("${protobuf.generatedFilesBaseDir}/main/java")
))
}
}
tasks.test {
useJUnitPlatform()
}