2024-03-31 03:12:20 +00:00
|
|
|
plugins {
|
2024-07-29 07:26:41 +00:00
|
|
|
alias(libs.plugins.kotlin.jvm)
|
2024-03-31 03:12:20 +00:00
|
|
|
id("com.google.protobuf") version "0.9.4"
|
|
|
|
}
|
|
|
|
|
|
|
|
group = "dev.usbharu"
|
|
|
|
version = "0.0.1"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
testImplementation("org.jetbrains.kotlin:kotlin-test")
|
2024-05-03 17:16:01 +00:00
|
|
|
api(project(":owl-producer:owl-producer-api"))
|
2024-03-31 03:12:20 +00:00
|
|
|
implementation("io.grpc:grpc-kotlin-stub:1.4.1")
|
2024-08-08 07:34:01 +00:00
|
|
|
implementation("io.grpc:grpc-protobuf:1.66.0")
|
2024-08-01 19:58:27 +00:00
|
|
|
implementation("com.google.protobuf:protobuf-kotlin:4.27.3")
|
2024-08-08 07:34:01 +00:00
|
|
|
implementation("io.grpc:grpc-netty:1.66.0")
|
2024-05-11 17:26:21 +00:00
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1")
|
2024-05-03 17:16:01 +00:00
|
|
|
implementation(project(":owl-common"))
|
|
|
|
protobuf(files(project(":owl-broker").dependencyProject.projectDir.toString() + "/src/main/proto"))
|
2024-03-31 03:12:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
|
|
|
kotlin {
|
2024-07-29 06:37:28 +00:00
|
|
|
jvmToolchain(21)
|
2024-03-31 03:12:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
protobuf {
|
|
|
|
protoc {
|
2024-08-01 16:16:35 +00:00
|
|
|
artifact = "com.google.protobuf:protoc:4.27.3"
|
2024-03-31 03:12:20 +00:00
|
|
|
}
|
|
|
|
plugins {
|
|
|
|
create("grpc") {
|
2024-08-08 07:34:01 +00:00
|
|
|
artifact = "io.grpc:protoc-gen-grpc-java:1.66.0"
|
2024-03-31 03:12:20 +00:00
|
|
|
}
|
|
|
|
create("grpckt") {
|
|
|
|
artifact = "io.grpc:protoc-gen-grpc-kotlin:1.4.1:jdk8@jar"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
generateProtoTasks {
|
|
|
|
all().forEach {
|
|
|
|
it.plugins {
|
|
|
|
create("grpc")
|
|
|
|
create("grpckt")
|
|
|
|
}
|
|
|
|
it.builtins {
|
|
|
|
create("kotlin")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|