2024-03-31 03:12:20 +00:00
|
|
|
plugins {
|
2024-07-29 07:26:41 +00:00
|
|
|
alias(libs.plugins.kotlin.jvm)
|
2024-08-13 12:06:59 +00:00
|
|
|
alias(libs.plugins.protobuf.plugin)
|
2024-03-31 03:12:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
group = "dev.usbharu"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2024-08-13 12:06:59 +00:00
|
|
|
testImplementation(libs.kotlin.junit)
|
2024-05-03 17:16:01 +00:00
|
|
|
api(project(":owl-producer:owl-producer-api"))
|
2024-08-13 12:06:59 +00:00
|
|
|
implementation(libs.bundles.grpc.kotlin)
|
|
|
|
implementation(libs.coroutines.core)
|
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-13 12:06:59 +00:00
|
|
|
artifact = libs.protoc.asProvider().get().toString()
|
2024-03-31 03:12:20 +00:00
|
|
|
}
|
|
|
|
plugins {
|
|
|
|
create("grpc") {
|
2024-08-13 12:06:59 +00:00
|
|
|
artifact = libs.protoc.gen.grpc.java.get().toString()
|
2024-03-31 03:12:20 +00:00
|
|
|
}
|
|
|
|
create("grpckt") {
|
2024-08-13 12:06:59 +00:00
|
|
|
artifact = libs.protoc.gen.grpc.kotlin.get().toString() + "jdk8@jar"
|
2024-03-31 03:12:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
generateProtoTasks {
|
|
|
|
all().forEach {
|
|
|
|
it.plugins {
|
|
|
|
create("grpc")
|
|
|
|
create("grpckt")
|
|
|
|
}
|
|
|
|
it.builtins {
|
|
|
|
create("kotlin")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|