Hideout/owl/owl-consumer/build.gradle.kts

50 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-04-01 06:22:31 +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-04-01 06:22:31 +00:00
}
group = "dev.usbharu"
repositories {
mavenCentral()
}
dependencies {
2024-08-13 12:06:59 +00:00
testImplementation(libs.kotlin.junit)
implementation(libs.bundles.grpc.kotlin)
implementation(libs.coroutines.core)
implementation(project(":owl-common"))
protobuf(files(project(":owl-broker").dependencyProject.projectDir.toString() + "/src/main/proto"))
2024-04-01 06:22:31 +00:00
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(21)
2024-04-01 06:22:31 +00:00
}
protobuf {
protoc {
2024-08-13 12:06:59 +00:00
artifact = libs.protoc.asProvider().get().toString()
2024-04-01 06:22:31 +00:00
}
plugins {
create("grpc") {
2024-08-13 12:06:59 +00:00
artifact = libs.protoc.gen.grpc.java.get().toString()
2024-04-01 06:22:31 +00:00
}
create("grpckt") {
2024-08-13 12:06:59 +00:00
artifact = libs.protoc.gen.grpc.kotlin.get().toString() + "jdk8@jar"
2024-04-01 06:22:31 +00:00
}
}
generateProtoTasks {
all().forEach {
it.plugins {
create("grpc")
create("grpckt")
}
it.builtins {
create("kotlin")
}
}
}
}