-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
86 lines (73 loc) · 2.14 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
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
82
83
84
85
86
import com.google.protobuf.gradle.id
plugins {
kotlin("jvm") version "1.9.23"
id("java")
application
id("com.google.protobuf") version "0.9.0"
}
group = "dev.oianmol"
version = "1.0-SNAPSHOT"
object Versions {
const val GRPC = "1.57.2"
const val GRPC_KOTLIN = "1.3.1"
const val PROTOBUF = "3.24.2"
const val COROUTINES = "1.7.3"
}
repositories {
mavenCentral()
google()
}
dependencies {
protobuf(project(":protos"))
implementation("io.insert-koin:koin-core:3.4.0")
implementation("io.grpc:grpc-netty-shaded:1.57.2")
implementation("com.google.protobuf:protobuf-java-util:3.24.2")
implementation("com.google.protobuf:protobuf-kotlin:3.24.2")
implementation("io.grpc:grpc-protobuf:1.57.2")
implementation("io.grpc:grpc-stub:1.57.2")
implementation("io.grpc:grpc-kotlin-stub:1.3.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.12.7")
implementation("javax.xml.stream:stax-api:1.0-2")
testImplementation(kotlin("test"))
testImplementation("io.mockk:mockk:1.13.7")
testImplementation("app.cash.turbine:turbine:1.0.0")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3")
testImplementation("io.grpc:grpc-testing:1.51.0")
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:${Versions.PROTOBUF}"
}
plugins {
id("grpc") {
artifact = "io.grpc:protoc-gen-grpc-java:${Versions.GRPC}"
}
id("grpckt") {
artifact = "io.grpc:protoc-gen-grpc-kotlin:${Versions.GRPC_KOTLIN}:jdk8@jar"
}
}
generateProtoTasks {
ofSourceSet("main").forEach {
it.plugins {
id("grpc") {
option("lite")
}
id("grpckt") {
option("lite")
}
}
it.builtins {
id("kotlin") {
option("lite")
}
}
}
}
}
tasks.test {
useJUnitPlatform()
}
application {
mainClass.set("MainKt")
}