Hideout/owl/owl-producer/owl-producer-default/build.gradle.kts

51 lines
1.1 KiB
Plaintext
Raw Normal View History

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