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

52 lines
1.0 KiB
Plaintext
Raw Normal View History

2024-03-04 09:24:57 +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-04 09:24:57 +00:00
}
group = "dev.usbharu"
repositories {
mavenCentral()
}
dependencies {
2024-08-13 12:06:59 +00:00
implementation(libs.bundles.grpc.kotlin)
implementation(libs.coroutines.core)
implementation(project(":owl-common"))
2024-08-13 12:06:59 +00:00
implementation(libs.log4j2.slf4j)
implementation(platform(libs.koin.bom))
implementation(libs.koin.core)
2024-03-04 09:24:57 +00:00
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(21)
2024-03-04 09:24:57 +00:00
}
protobuf {
protoc {
2024-08-13 12:06:59 +00:00
artifact = libs.protoc.asProvider().get().toString()
2024-03-04 09:24:57 +00:00
}
plugins {
create("grpc") {
2024-08-13 12:06:59 +00:00
artifact = libs.protoc.gen.grpc.java.get().toString()
2024-03-04 09:24:57 +00:00
}
create("grpckt") {
2024-08-13 12:06:59 +00:00
artifact = libs.protoc.gen.grpc.kotlin.get().toString() + "jdk8@jar"
2024-03-04 09:24:57 +00:00
}
}
generateProtoTasks {
all().forEach {
it.plugins {
create("grpc")
create("grpckt")
}
it.builtins {
create("kotlin")
}
}
}
}